final class Failure extends Parsed[Nothing]
The outcome of a failed parse
- Alphabetic
- By Inheritance
- Failure
- Parsed
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Failure(label: String, index: Int, extra: Extra)
- label
A hint as to why the parse failed. Defaults to "", unless you set
verboseFailures = trueor call.trace()on an existing failure- index
The index at which the parse failed
- extra
Metadata about the parse; useful for re-running the parse to trace out a more detailed error report
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val extra: Extra
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fold[V](onFailure: (String, Int, Extra) => V, onSuccess: (Nothing, Int) => V): V
- def get: Nothing
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val index: Int
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val isSuccess: Boolean
- Definition Classes
- Parsed
- val label: String
- def longMsg: String
Displays the failure message including the parse stack, if possible
- def msg: String
Displays the failure message excluding the parse stack
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Failure → AnyRef → Any
- def trace(enableLogging: Boolean = false): TracedFailure
Re-runs the failed parse with
verboseFailuresturned on and failure aggregation enabled.Re-runs the failed parse with
verboseFailuresturned on and failure aggregation enabled. This allows Fastparse to provide much more detailed error messages, at a cost of taking ~2x as long than the original parse.By default, logging is disabled during the tracing run; this is because you typically already saw the logging output during the primary parse, and the tracing run's log output should be identical. You can pass in
enableLogging = trueto log the tracing run as well. - 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()