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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getEncountered()
Returns the physical input encountered when the error happened.java.util.List<java.lang.String>
getExpected()
Returns all that are logically expected.java.lang.String
getFailureMessage()
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.java.lang.String
getUnexpected()
Returns what is logically unexpected, ornull
if none.
-
-
-
Method Detail
-
getIndex
int getIndex()
Returns the 0-based index in the source where the error happened.
-
getEncountered
java.lang.String getEncountered()
Returns the physical input encountered when the error happened.
-
getExpected
java.util.List<java.lang.String> getExpected()
Returns all that are logically expected.
-
getUnexpected
java.lang.String getUnexpected()
Returns what is logically unexpected, ornull
if none.
-
getFailureMessage
java.lang.String getFailureMessage()
Returns the error message incurred byParsers.fail(String)
, ornull
if none.
-
-