TracedFailure

fastparse.Parsed$.TracedFailure
See theTracedFailure companion object
case class TracedFailure(terminals: Msgs, groups: Msgs, failure: Failure)

A decorated Failure with extra metadata; provides a much more detailed, through verbose, of the possible inputs that may have been expected at the index at which the parse failed.

Attributes

failure

The raw failure object

groups

A list of all the highest level parsers which could have succeeded at the given failure index. These give you a good

terminals

A list of all the lowest level parsers which could have succeeded at the failure index. These are things like literal string parsers, CharIn, CharPred, etc.

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def aggregateMsg: String

Displays the aggregate failure message, excluding the parse stack. This includes a list of all highest-level parsers which could have succeeded at the failure index. This gives you a good high-level overview of what the parser expected, at the cost

Displays the aggregate failure message, excluding the parse stack. This includes a list of all highest-level parsers which could have succeeded at the failure index. This gives you a good high-level overview of what the parser expected, at the cost

Attributes

def index: Int
def label: String
def longAggregateMsg: String

A version of aggregateMsg that includes the parse stack

A version of aggregateMsg that includes the parse stack

Attributes

def longMsg: String

A version of msg that includes the parse stack

A version of msg that includes the parse stack

Attributes

def longTerminalsMsg: String

A version of terminalsMsg that includes the parse stack.

A version of terminalsMsg that includes the parse stack.

Attributes

def msg: String

Displays the short failure message excluding the parse stack. This shows the last parser which failed causing the parse to fail. Note that this does not include other parsers which may have failed earlier; see terminalsMsg and reportParseMsg for more detailed errors

Displays the short failure message excluding the parse stack. This shows the last parser which failed causing the parse to fail. Note that this does not include other parsers which may have failed earlier; see terminalsMsg and reportParseMsg for more detailed errors

Attributes

def stack: List[(String, Int)]
def terminalsMsg: String

Displays the terminals failure message, excluding the parse stack. This includes a list of all lowest-level parsers which could have succeeded at the failure index: literal strings, CharIn, CharPreds, etc. This gives you a detailed listing of how the parse could be corrected, though it can be verbose.

Displays the terminals failure message, excluding the parse stack. This includes a list of all lowest-level parsers which could have succeeded at the failure index: literal strings, CharIn, CharPreds, etc. This gives you a detailed listing of how the parse could be corrected, though it can be verbose.

Attributes

Deprecated methods

def trace: String

Attributes

Deprecated
true

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product