Interface ParseError

All Known Implementing Classes:
ActionError, BasicParseError, InvalidInputError

public interface ParseError
Common interface of all parboiled parse error implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the end index of the parse error in the underlying input buffer.
    An optional error message.
    Gets the inputbuffer this error occurred in.
    int
    Gets the start index of the parse error in the underlying input buffer.
  • Method Details

    • getInputBuffer

      InputBuffer getInputBuffer()
      Gets the inputbuffer this error occurred in.
      Returns:
      the inputbuffer
    • getStartIndex

      int getStartIndex()
      Gets the start index of the parse error in the underlying input buffer.
      Returns:
      the input index of the first character covered by this error
    • getEndIndex

      int getEndIndex()
      Gets the end index of the parse error in the underlying input buffer.
      Returns:
      the end index of this error, i.e. the index of the character immediately following the last character covered by this error
    • getErrorMessage

      String getErrorMessage()
      An optional error message.
      Returns:
      an optional error message.