Packages

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. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++(error: JsError): JsError
  4. def +:(error: (JsPath, JsonValidationError)): JsError
  5. def :+(error: (JsPath, JsonValidationError)): JsError
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def append(error: (JsPath, JsonValidationError)): JsError
  8. 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
    JsErrorJsResult
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. 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
    JsErrorJsResult
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. def collect[B](otherwise: JsonValidationError)(p: PartialFunction[Nothing, B]): JsResult[B]
    Definition Classes
    JsResult
  13. 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
    JsErrorJsResult
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. val errors: Seq[(JsPath, Seq[JsonValidationError])]
  16. 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
    JsErrorJsResult
  17. def filter(otherwise: JsError)(p: (Nothing) => Boolean): JsResult[Nothing]
    Definition Classes
    JsResult
  18. def filter(p: (Nothing) => Boolean): JsResult[Nothing]
    Definition Classes
    JsResult
  19. def filterNot(p: (Nothing) => Boolean): JsResult[Nothing]
    Definition Classes
    JsResult
  20. def filterNot(error: JsError)(p: (Nothing) => Boolean): JsResult[Nothing]
    Definition Classes
    JsResult
  21. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  22. 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
    JsErrorJsResult
  23. 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
    JsErrorJsResult
  24. 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
    JsErrorJsResult
  25. 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
    JsErrorJsResult
  26. def get: Nothing

    Not recommended

    Not recommended

    Definition Classes
    JsErrorJsResult
  27. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. 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
    JsErrorJsResult
  29. val isError: Boolean
    Definition Classes
    JsErrorJsResult
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. val isSuccess: Boolean
    Definition Classes
    JsErrorJsResult
  32. 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
    JsErrorJsResult
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. 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
    JsErrorJsResult
  37. def prepend(error: (JsPath, JsonValidationError)): JsError
  38. def productElementNames: Iterator[String]
    Definition Classes
    Product
  39. 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
    JsErrorJsResult
  40. 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
    JsErrorJsResult
  41. def recoverWith[U](errManager: (JsError) => 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
    JsErrorJsResult
  42. def repath(path: JsPath): JsResult[Nothing]

    Updates the JSON path

    Updates the JSON path

    Definition Classes
    JsErrorJsResult
  43. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  47. def withFilter(p: (Nothing) => Boolean): WithFilter
    Definition Classes
    JsResult

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from JsResult[Nothing]

Inherited from AnyRef

Inherited from Any

Ungrouped