object Detailed

Extracts the first error details (message and its first argument).

import play.api.libs.json.JsonValidationError

def details(err: JsonValidationError): Option[(String, Any)] = err match {
  case JsonValidationError.Detailed(msg, arg) => Some(msg -> arg)
  case _ => None
}
Source
JsonValidationError.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: JsonValidationError): Option[(String, Any)]