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
}
Source
JsResult.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Detailed
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

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