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
public class ParseException extends Exception
An exception thrown by aParserX.parse()
call in order to signal a parser error.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParseException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
Gets the _column number in the source code in which the error occurred.int
getLine()
Gets the source code _line number in which the error occurred.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 occurredcolumn
- the _column number in the source code in which the error occurredmessage
- 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
-
-