Packages

final class Failure extends Parsed[Nothing]

The outcome of a failed parse

Linear Supertypes
Parsed[Nothing], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Failure
  2. Parsed
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. val extra: Extra
  9. def fold[V](onFailure: (String, Int, Extra) ⇒ V, onSuccess: (Nothing, Int) ⇒ V): V
    Definition Classes
    FailureParsed
  10. def get: Nothing
    Definition Classes
    FailureParsed
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. val index: Int
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val isSuccess: Boolean
    Definition Classes
    Parsed
  16. val label: String
  17. def longMsg: String

    Displays the failure message including the parse stack, if possible

  18. def msg: String

    Displays the failure message excluding the parse stack

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    Failure → AnyRef → Any
  24. 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.

  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Parsed[Nothing]

Inherited from AnyRef

Inherited from Any

Ungrouped