object Message

Extracts the first error message.

import play.api.libs.json.JsError

def msg(err: JsError): Option[String] = err match {
  case JsError.Message(msg) => Some(msg)
  case _ => None
}
Source
JsResult.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: JsError): Option[String]