Class/Object

play.api.libs.json

JsError

Related Docs: object JsError | package json

Permalink

case class JsError(errors: Seq[(JsPath, Seq[JsonValidationError])]) extends JsResult[Nothing] with Product with Serializable

The result in case of parsing errors.

Source
JsResult.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, JsResult[Nothing], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsError
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. JsResult
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsError(errors: Seq[(JsPath, Seq[JsonValidationError])])

    Permalink

Type Members

  1. final class WithFilter extends AnyRef

    Permalink
    Definition Classes
    JsResult

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(error: JsError): JsError

    Permalink
  4. def +:(error: (JsPath, JsonValidationError)): JsError

    Permalink
  5. def :+(error: (JsPath, JsonValidationError)): JsError

    Permalink
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def append(error: (JsPath, JsonValidationError)): JsError

    Permalink
  8. def asEither: Either[Seq[(JsPath, Seq[JsonValidationError])], Nothing]

    Permalink

    Returns either the result errors (at Left), or the successful value (at Right).

    Returns either the result errors (at Left), or the successful value (at Right).

    Definition Classes
    JsErrorJsResult
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. val asOpt: None.type

    Permalink

    Transforms this result either Some option with the successful value, or as None in case of JSON error.

    Transforms this result either Some option with the successful value, or as None in case of JSON error.

    Definition Classes
    JsErrorJsResult
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def collect[B](otherwise: JsonValidationError)(p: PartialFunction[Nothing, B]): JsResult[B]

    Permalink
    Definition Classes
    JsResult
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. val errors: Seq[(JsPath, Seq[JsonValidationError])]

    Permalink
  15. def filter(otherwise: JsError)(p: (Nothing) ⇒ Boolean): JsResult[Nothing]

    Permalink
    Definition Classes
    JsResult
  16. def filter(p: (Nothing) ⇒ Boolean): JsResult[Nothing]

    Permalink
    Definition Classes
    JsResult
  17. def filterNot(p: (Nothing) ⇒ Boolean): JsResult[Nothing]

    Permalink
    Definition Classes
    JsResult
  18. def filterNot(error: JsError)(p: (Nothing) ⇒ Boolean): JsResult[Nothing]

    Permalink
    Definition Classes
    JsResult
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def flatMap[U](f: (Nothing) ⇒ JsResult[U]): JsResult[U]

    Permalink

    If this result is successful, applies the function f on the parsed value.

    If this result is successful, applies the function f on the parsed value.

    Definition Classes
    JsErrorJsResult
  21. def fold[U](invalid: (Seq[(JsPath, Seq[JsonValidationError])]) ⇒ U, valid: (Nothing) ⇒ U): U

    Permalink

    Either applies the invalid function if this result is an error, or applies the valid function on the successful value.

    Either applies the invalid function if this result is an error, or applies the valid function on the successful value.

    Definition Classes
    JsErrorJsResult
  22. def foreach(f: (Nothing) ⇒ Unit): Unit

    Permalink

    If this result is successful, applies the function f on the parsed value.

    If this result is successful, applies the function f on the parsed value.

    Definition Classes
    JsErrorJsResult
  23. def get: Nothing

    Permalink

    Not recommended

    Not recommended

    Definition Classes
    JsErrorJsResult
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def getOrElse[U](t: ⇒ U): U

    Permalink

    Either returns the successful value, or the value from t.

    Either returns the successful value, or the value from t.

    Definition Classes
    JsErrorJsResult
  26. val isError: Boolean

    Permalink
    Definition Classes
    JsErrorJsResult
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. val isSuccess: Boolean

    Permalink
    Definition Classes
    JsErrorJsResult
  29. def map[U](f: (Nothing) ⇒ U): JsResult[U]

    Permalink

    If this result is successful, applies the function f on the parsed value.

    If this result is successful, applies the function f on the parsed value.

    Definition Classes
    JsErrorJsResult
  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. def orElse[U](t: ⇒ JsResult[U]): JsResult[U]

    Permalink

    Either returns this result if successful, or the result from t.

    Either returns this result if successful, or the result from t.

    Definition Classes
    JsErrorJsResult
  34. def prepend(error: (JsPath, JsonValidationError)): JsError

    Permalink
  35. def recover[U](errManager: PartialFunction[JsError, U]): JsResult[U]

    Permalink

    If this result is not successful, recovers the errors with the given function.

    If this result is not successful, recovers the errors with the given function.

    Definition Classes
    JsErrorJsResult
  36. def recoverTotal[U](errManager: (JsError) ⇒ U): U

    Permalink

    If this result is not successful, recovers the errors with the given function.

    If this result is not successful, recovers the errors with the given function.

    Definition Classes
    JsErrorJsResult
  37. def repath(path: JsPath): JsResult[Nothing]

    Permalink

    Updates the JSON path

    Updates the JSON path

    Definition Classes
    JsErrorJsResult
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def withFilter(p: (Nothing) ⇒ Boolean): WithFilter

    Permalink
    Definition Classes
    JsResult

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from JsResult[Nothing]

Inherited from AnyRef

Inherited from Any

Ungrouped