Package org.esa.snap.core.jexp
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.esa.snap.core.jexp.ParseException
- All Implemented Interfaces:
Serializable
An exception thrown by a
ParserX.parse()
call in order to
signal a parser error.- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParseException
(int line, int column, String message) Constructs a new parser exception with the given position in source code and with the given message.ParseException
(String message) Constructs a new parser exception with the given message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseException
Constructs a new parser exception with the given message.- Parameters:
message
- the error message
-
ParseException
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 occurredcolumn
- the _column number in the source code in which the error occurredmessage
- the error message
-
-
Method Details
-
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
-