ValueDoesNotMatchException

reactivemongo.api.bson.exceptions.ValueDoesNotMatchException$
See theValueDoesNotMatchException companion class

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

reactivemongo.api.bson.exceptions.
 ValueDoesNotMatchException("unsupported")

Attributes

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

Attributes