Class/Object

fastparse.Parsed

Failure

Related Docs: object Failure | package Parsed

Permalink

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)

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. val extra: Extra

    Permalink

    Metadata about the parse; useful for re-running the parse to trace out a more detailed error report

  9. def fold[V](onFailure: (String, Int, Extra) ⇒ V, onSuccess: (Nothing, Int) ⇒ V): V

    Permalink
    Definition Classes
    FailureParsed
  10. def get: Nothing

    Permalink
    Definition Classes
    FailureParsed
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. val index: Int

    Permalink

    The index at which the parse failed

  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. val isSuccess: Boolean

    Permalink
    Definition Classes
    Parsed
  16. val label: String

    Permalink

    A hint as to why the parse failed.

    A hint as to why the parse failed. Defaults to "", unless you set verboseFailures = true or call .trace() on an existing failure

  17. def longMsg: String

    Permalink

    Displays the failure message including the parse stack, if possible

  18. def msg: String

    Permalink

    Displays the failure message excluding the parse stack

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    Failure → AnyRef → Any
  24. def trace(enableLogging: Boolean = false): TracedFailure

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    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