public class ParsingException extends Exception
Modifier and Type | Field and Description |
---|---|
private int |
line |
private String |
message |
Constructor and Description |
---|
ParsingException(String message)
Construct a new
ParsingException . |
ParsingException(String message,
int line)
Construct a new
ParsingException . |
Modifier and Type | Method and Description |
---|---|
int |
getLine()
Get the line number of this exception.
|
String |
getMessage()
Get the message of this exception.
|
String |
toString()
Convert the parsing exception to a string that contains the message and
line number.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public ParsingException(String message)
ParsingException
.message
- The exception message.public ParsingException(String message, int line)
ParsingException
.message
- The exception message.line
- The line number in the input where the exception occurred.public int getLine()
public String getMessage()
getMessage
in class Throwable
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses