case class JsError(errors: Seq[(JsPath, Seq[JsonValidationError])]) extends JsResult[Nothing] with Product with Serializable
- Alphabetic
- By Inheritance
- JsError
- Serializable
- Serializable
- Product
- Equals
- JsResult
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new JsError(errors: Seq[(JsPath, Seq[JsonValidationError])])
Type Members
-
final
class
WithFilter extends AnyRef
- Definition Classes
- JsResult
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def ++(error: JsError): JsError
- def +:(error: (JsPath, JsonValidationError)): JsError
- def :+(error: (JsPath, JsonValidationError)): JsError
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def append(error: (JsPath, JsonValidationError)): JsError
-
def
asEither: Either[Seq[(JsPath, Seq[JsonValidationError])], Nothing]
Returns either the result errors (at
Left
), or the successful value (atRight
). -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
asOpt: None.type
Transforms this result either
Some
option with the successful value, or asNone
in case of JSON error. -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
collect[B](otherwise: JsonValidationError)(p: PartialFunction[Nothing, B]): JsResult[B]
- Definition Classes
- JsResult
-
def
contains[AA](elem: AA): Boolean
If this result is successful than checks for presence for elem, otherwise return false
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val errors: Seq[(JsPath, Seq[JsonValidationError])]
-
def
exists(p: (Nothing) ⇒ Boolean): Boolean
If this result is successful than check value with predicate p, otherwise return false
-
def
filter(otherwise: JsError)(p: (Nothing) ⇒ Boolean): JsResult[Nothing]
- Definition Classes
- JsResult
-
def
filter(p: (Nothing) ⇒ Boolean): JsResult[Nothing]
- Definition Classes
- JsResult
-
def
filterNot(p: (Nothing) ⇒ Boolean): JsResult[Nothing]
- Definition Classes
- JsResult
-
def
filterNot(error: JsError)(p: (Nothing) ⇒ Boolean): JsResult[Nothing]
- Definition Classes
- JsResult
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatMap[U](f: (Nothing) ⇒ JsResult[U]): JsResult[U]
If this result is successful, applies the function
f
on the parsed value. -
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 thevalid
function on the successful value. -
def
forall(p: (Nothing) ⇒ Boolean): Boolean
If this result is successful than check value with predicate p, otherwise return true.
-
def
foreach(f: (Nothing) ⇒ Unit): Unit
If this result is successful, applies the function
f
on the parsed value. -
def
get: Nothing
Not recommended
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getOrElse[U](t: ⇒ U): U
Either returns the successful value, or the value from
t
. - val isError: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val isSuccess: Boolean
-
def
map[U](f: (Nothing) ⇒ U): JsResult[U]
If this result is successful, applies the function
f
on the parsed value. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
orElse[U](t: ⇒ JsResult[U]): JsResult[U]
Either returns this result if successful, or the result from
t
. - def prepend(error: (JsPath, JsonValidationError)): JsError
-
def
recover[U](errManager: PartialFunction[JsError, U]): JsResult[U]
If this result is not successful, recovers the errors with the given function.
-
def
recoverTotal[U](errManager: (JsError) ⇒ U): U
If this result is not successful, recovers the errors with the given function.
-
def
recoverWith[U](errManager: (JsError) ⇒ JsResult[U]): JsResult[U]
If this result is not successful, recovers the errors with the given function.
-
def
repath(path: JsPath): JsResult[Nothing]
Updates the JSON path
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withFilter(p: (Nothing) ⇒ Boolean): WithFilter
- Definition Classes
- JsResult