public class ParseException extends Exception
ParserX.parse()
call in order to
signal a parser error.Constructor and 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.
|
Modifier and Type | Method and 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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParseException(String message)
message
- the error messagepublic ParseException(int line, int column, String message)
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 messagepublic final int getLine()
-1
if not availablepublic final int getColumn()
-1
if not availableCopyright © 2014–2015 European Space Agency (ESA). All rights reserved.