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, Product, Equals, JsResult[Nothing], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsError
  2. Serializable
  3. Product
  4. Equals
  5. JsResult
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

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

Type Members

  1. final class WithFilter extends AnyRef
    Definition Classes
    JsResult

Value Members

  1. def ++(error: JsError): JsError
  2. def +:(error: (, JsonValidationError)): JsError
  3. def :+(error: (, JsonValidationError)): JsError
  4. def append(error: (, JsonValidationError)): JsError
  5. def asEither: Either[Seq[(JsPath, Seq[JsonValidationError])], Nothing]

    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
    JsResult
  6. val asOpt: None.type

    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
    JsResult
  7. def collect[B](otherwise: JsonValidationError)(p: PartialFunction[Nothing, B]): JsResult[B]
    Definition Classes
    JsResult
  8. def contains[AA](elem: AA): Boolean

    If this result is successful than checks for presence for elem, otherwise return false

    If this result is successful than checks for presence for elem, otherwise return false

    Definition Classes
    JsResult
  9. val errors: Seq[(JsPath, Seq[JsonValidationError])]
  10. def exists(p: (Nothing) => Boolean): Boolean

    If this result is successful than check value with predicate p, otherwise return false

    If this result is successful than check value with predicate p, otherwise return false

    Definition Classes
    JsResult
  11. def filter(otherwise: JsError)(p: (Nothing) => Boolean): JsResult[Nothing]
    Definition Classes
    JsResult
  12. def filter(p: (Nothing) => Boolean): JsResult[Nothing]
    Definition Classes
    JsResult
  13. def filterNot(p: (Nothing) => Boolean): JsResult[Nothing]
    Definition Classes
    JsResult
  14. def filterNot(error: JsError)(p: (Nothing) => Boolean): JsResult[Nothing]
    Definition Classes
    JsResult
  15. def flatMap[U](f: (Nothing) => JsResult[U]): JsResult[U]

    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
    JsResult
  16. def fold[U](invalid: (Seq[(JsPath, Seq[JsonValidationError])]) => U, valid: (Nothing) => U): U

    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
    JsResult
  17. def forall(p: (Nothing) => Boolean): Boolean

    If this result is successful than check value with predicate p, otherwise return true.

    If this result is successful than check value with predicate p, otherwise return true. Follows scala.collection.Traversable.forall semantics

    Definition Classes
    JsResult
  18. def foreach(f: (Nothing) => Unit): Unit

    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
    JsResult
  19. def get: Nothing

    Not recommended

    Not recommended

    Definition Classes
    JsResult
  20. def getOrElse[U](t: => U): U

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

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

    Definition Classes
    JsResult
  21. val isError: Boolean
    Definition Classes
    JsResult
  22. val isSuccess: Boolean
    Definition Classes
    JsResult
  23. def map[U](f: (Nothing) => U): JsResult[U]

    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
    JsResult
  24. def orElse[U](t: => JsResult[U]): JsResult[U]

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

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

    Definition Classes
    JsResult
  25. def prepend(error: (, JsonValidationError)): JsError
  26. def productElementNames: Iterator[String]
    Definition Classes
    Product
  27. def recover[U](errManager: PartialFunction[JsError, U]): JsResult[U]

    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
    JsResult
  28. def recoverTotal[U](errManager: (JsError) => U): U

    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
    JsResult
  29. def recoverWith[U](errManager: () => JsResult[U]): JsResult[U]

    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
    JsResult
  30. def repath(path: JsPath): JsResult[Nothing]

    Updates the JSON path

    Updates the JSON path

    Definition Classes
    JsResult
  31. def withFilter(p: (Nothing) => Boolean): WithFilter
    Definition Classes
    JsResult