final class Failure extends Parsed[Nothing]
The outcome of a failed parse
- Alphabetic
- By Inheritance
- Failure
- Parsed
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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 = true
or 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val extra: Extra
- def fold[V](onFailure: (String, Int, Extra) ⇒ V, onSuccess: (Nothing, Int) ⇒ V): V
- def get: Nothing
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
verboseFailures
turned on and failure aggregation enabled.Re-runs the failed parse with
verboseFailures
turned 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 = true
to log the tracing run as well. -
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( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )