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
    @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 finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def fold[V](onFailure: (String, Int, Extra) ⇒ V, onSuccess: (Nothing, Int) ⇒ V): V

    Permalink
    Definition Classes
    FailureParsed
  11. def get: Nothing

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. val index: Int

    Permalink

    The index at which the parse failed

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val isSuccess: Boolean

    Permalink
    Definition Classes
    Parsed
  17. 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

  18. def longMsg: String

    Permalink

    Displays the failure message including the parse stack, if possible

  19. def msg: String

    Permalink

    Displays the failure message excluding the parse stack

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

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

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    Failure → AnyRef → Any
  25. 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.

  26. final def wait(): Unit

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

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

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

Inherited from Parsed[Nothing]

Inherited from AnyRef

Inherited from Any

Ungrouped