Package jjparse

Class Parsing.Error<T>

Type Parameters:
T - The covariant type of the parsed value, which is unused in case of an Parsing.Error.
Enclosing class:
Parsing<I>

public final class Parsing.Error<T> extends Parsing<I>.Failure<T>
Represents a recoverable Parsing.Failure.

An Parsing.Error may lead to backtracking during parsing. In particular, when a Parsing.ChoiceParser fails with an Parsing.Error on its first alternative, it tries to apply the second one.

Note: This class is intended to be immutable and hence covariant in its type parameter.
Author:
Björn Lötters
See Also: