ValueDoesNotMatchException

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

reactivemongo.api.bson.exceptions.
 ValueDoesNotMatchException("unsupported")
def unapply(exception: Exception): Option[String]

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 _ =>
}