Package org.opensourcephysics.numerics
Class ParserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opensourcephysics.numerics.ParserException
- All Implemented Interfaces:
Serializable
Indicates that an error occurred in parser operation, and the operation
could not be completed. Used internally in
Parser
class.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParserException
(int code) The constructor ofParserException
.ParserException
(String msg) Constructor ParserException -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParserException
public ParserException(int code) The constructor ofParserException
.- Parameters:
code
- the error code
-
ParserException
Constructor ParserException- Parameters:
msg
-
-
-
Method Details
-
getErrorCode
public int getErrorCode()Gets the error code.- Returns:
- the error code
-