Class/Object

fastparse.Parsed

Failure

Related Docs: object Failure | package Parsed

Permalink

final case class Failure(label: String, index: Int, extra: Extra) extends Parsed[Nothing] with Product with Serializable

The outcome of a failed parse

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

Linear Supertypes
Serializable, Serializable, Product, Equals, Parsed[Nothing], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Failure
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Parsed
  7. AnyRef
  8. 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. val extra: Extra

    Permalink

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

  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  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
  12. val index: Int

    Permalink

    The index at which the parse failed

  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val isSuccess: Boolean

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

  16. def longMsg: String

    Permalink

    Displays the failure message including the parse stack, if possible

  17. def msg: String

    Permalink

    Displays the failure message excluding the parse stack

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

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

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

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

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

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

  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  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( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Parsed[Nothing]

Inherited from AnyRef

Inherited from Any

Ungrouped