Interface ParseErrorDetails

  • All Known Implementing Classes:
    EmptyParseError

    public interface ParseErrorDetails
    Describes details of a parsing error to support fine-grained error handling.
    • 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, or null if none.
      • getFailureMessage

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