Top Description Methods
org.jparsec.error

public Interface ParseErrorDetails

Known Direct Implementers
org.jparsec.EmptyParseError
Imports
org.jparsec.Parsers, java.util.List

Describes details of a parsing error to support fine-grained error handling.
Author
Ben Yu

Method Summary

Modifier and TypeMethod and Description
public String
getEncountered()

Returns the physical input encountered when the error happened.

public List<String>
getExpected()

Returns all that are logically expected.

public String
getFailureMessage()

Returns the error message incurred by Parsers#fail(String), or null if none.

public int
getIndex()

Returns the 0-based index in the source where the error happened.

public String
getUnexpected()

Returns what is logically unexpected, or null if none.

Method Detail

getEncounteredback to summary
public String getEncountered()

Returns the physical input encountered when the error happened.

getExpectedback to summary
public List<String> getExpected()

Returns all that are logically expected.

getFailureMessageback to summary
public String getFailureMessage()

Returns the error message incurred by Parsers#fail(String), or null if none.

getIndexback to summary
public int getIndex()

Returns the 0-based index in the source where the error happened.

getUnexpectedback to summary
public String getUnexpected()

Returns what is logically unexpected, or null if none.