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 Object
trait Matchable
class Any
Self type
Detailed.type

Members list

Value members

Concrete methods

def unapply(error: JsError): Option[(String, Any)]