Class ParseException

  • All Implemented Interfaces:
    Serializable

    public class ParseException
    extends Exception
    An exception thrown by a ParserX.parse() call in order to signal a parser error.
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Constructor Detail

      • ParseException

        public ParseException​(String message)
        Constructs a new parser exception with the given message.
        Parameters:
        message - the error message
      • ParseException

        public ParseException​(int line,
                              int column,
                              String message)
        Constructs a new parser exception with the given position in source code and with the given message.
        Parameters:
        line - the source code _line number in which the error occurred
        column - the _column number in the source code in which the error occurred
        message - the error message
    • Method Detail

      • getLine

        public final int getLine()
        Gets the source code _line number in which the error occurred.
        Returns:
        the _line number or -1 if not available
      • getColumn

        public final int getColumn()
        Gets the _column number in the source code in which the error occurred.
        Returns:
        the _column number or -1 if not available