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
- 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(classOf[java.lang.CloneNotSupportedException]) @native()
- 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[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val index: Int
Where the parser ended up, whether the result was a success or failure
- 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
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()