reactivemongo.api.bson.exceptions
Defines a type exception.
Defines a type exception.
the name of the expected type
the name of the actual type
reactivemongo.api.bson.exceptions. TypeDoesNotMatchException("LocalDate", "String")
Extracts expected and actual types from the type exception.
Extracts expected and actual types from the type exception.
import reactivemongo.api.bson.exceptions.TypeDoesNotMatchException def foo(cause: Exception) = cause match { case TypeDoesNotMatchException(expected, actual) => println(expected + " -> " + actual) case _ => }
TypeDoesNotMatchException factories