object Message

Extracts the first error message.

import play.api.libs.json.JsonValidationError

def msg(err: JsonValidationError): Option[String] = err match {
  case JsonValidationError.Message(msg) => Some(msg)
  case _ => None
}
Source
JsonValidationError.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Message
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def unapply(error: JsonValidationError): Option[String]