Extracts expected and actual types from the type exception.
Extracts expected and actual types from the type exception.
import reactivemongo.api.bson.exceptions.ValueDoesNotMatchException
def foo(cause: Exception) = cause match {
case ValueDoesNotMatchException(actual) =>
println(actual)
case _ =>
}