Package rma.text
Class ParsingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
rma.text.ParsingException
- All Implemented Interfaces:
Serializable
General-purpose parsing exception.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParsingException
(String message) Construct a newParsingException
.ParsingException
(String message, int line) Construct a newParsingException
. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ParsingException
Construct a newParsingException
.- Parameters:
message
- The exception message.
-
ParsingException
Construct a newParsingException
.- Parameters:
message
- The exception message.line
- The line number in the input where the exception occurred.
-
-
Method Details
-
getLine
public int getLine()Get the line number of this exception. If no line number is available, this method returns -1. -
getMessage
Get the message of this exception.- Overrides:
getMessage
in classThrowable
-
toString
Convert the parsing exception to a string that contains the message and line number.
-