Class ParseException

All Implemented Interfaces:
Serializable

public class ParseException extends Exception
The parse exception contains necessary information to understand the parse failure.
See Also:
  • Constructor Details

    • ParseException

      public ParseException(ParseErrorCode ec, String text, int line, int column, String source)
      Construct a parse exception.
      Parameters:
      ec - The error code.
      text - The line on which the parse failed.
      line - The line number.
      column - The column.
      source - Information about where the xmq originated from.
  • Method Details

    • errorCode

      public ParseErrorCode errorCode()
      Get the error code.
      Returns:
      error code
    • text

      public String text()
      Get the line of text.
      Returns:
      line of text
    • line

      public int line()
      Get the line number.
      Returns:
      line number
    • column

      public int column()
      Get the column.
      Returns:
      column
    • source

      public String source()
      Get the source, ie file name, "mbuffer", "stdin" etc.
      Returns:
      The source information.