Package org.jparsec.error
Interface ParseErrorDetails
- All Known Implementing Classes:
EmptyParseError
public interface ParseErrorDetails
Describes details of a parsing error to support fine-grained error handling.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the physical input encountered when the error happened.Returns all that are logically expected.Returns the error message incurred byParsers.fail(String)
, ornull
if none.int
getIndex()
Returns the 0-based index in the source where the error happened.Returns what is logically unexpected, ornull
if none.
-
Method Details
-
getIndex
int getIndex()Returns the 0-based index in the source where the error happened. -
getEncountered
String getEncountered()Returns the physical input encountered when the error happened. -
getExpected
Returns all that are logically expected. -
getUnexpected
String getUnexpected()Returns what is logically unexpected, ornull
if none. -
getFailureMessage
String getFailureMessage()Returns the error message incurred byParsers.fail(String)
, ornull
if none.
-