Detailed
play.api.libs.json.JsError.Detailed
object Detailed
Extracts the first error details (message and its first argument).
import play.api.libs.json.JsError
def cause(err: JsError): Option[(String, Exception)] = err match {
case JsError.Detailed(msg, ex: Exception) => Some(msg -> ex)
case _ => None
}
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Detailed.type
Members list
In this article