Class ParserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opensourcephysics.ejs.control.value.ParserException
- All Implemented Interfaces:
Serializable
Indicates that an error occured in parser operation, and the operation
could not be completed. Used internally in
Parser
class.- See Also:
-
Parser
- Serialized Form
-
Field Summary
Fields -
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
-
Field Details
-
SYNTAX_ERROR
public static final int SYNTAX_ERROR- See Also:
-
-
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
-