case class Failure[Elem, Repr](lastParser: Parser[_, Elem, Repr], index: Int, extra: Extra[Elem, Repr]) extends Parsed[Nothing, Elem, Repr] with Product with Serializable
Simple information about a parse failure. Also contains the original parse information necessary to construct the traced failure. That contains more information but is more costly to compute and is thus computed lazily on demand.
- lastParser
The deepest parser in the parse which failed
- index
The index in the parse where this parse failed
- extra
Extra supplementary information (including trace information). For details see Parsed.Failure.Extra
- Alphabetic
- By Inheritance
- Failure
- Serializable
- Serializable
- Product
- Equals
- Parsed
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Failure(lastParser: Parser[_, Elem, Repr], index: Int, extra: Extra[Elem, Repr])
- lastParser
The deepest parser in the parse which failed
- index
The index in the parse where this parse failed
- extra
Extra supplementary information (including trace information). For details see Parsed.Failure.Extra
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val extra: Extra[Elem, Repr]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fold[X](onFailure: (Parser[_, Elem, Repr], Int, Extra[Elem, Repr]) ⇒ X, onSuccess: (Nothing, Int) ⇒ X): X
Returns the result of $onSuccess if the parsing is successful, otherwise it returns the result of $onFailure
Returns the result of $onSuccess if the parsing is successful, otherwise it returns the result of $onFailure
- Definition Classes
- Parsed
-
def
get: Success[Nothing, Elem, Repr]
Converts this instance of Parsed into a Parsed.Success or throws an exception if it was a failure.
Converts this instance of Parsed into a Parsed.Success or throws an exception if it was a failure.
- Definition Classes
- Parsed
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- val index: Int
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lastParser: Parser[_, Elem, Repr]
- def msg: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Failure → AnyRef → Any
-
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
- @throws( ... )