org.opensourcephysics.ejs.control.value
Class ParserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opensourcephysics.ejs.control.value.ParserException
- All Implemented Interfaces:
- java.io.Serializable
public final class ParserException
- extends java.lang.Exception
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SYNTAX_ERROR
public static final int SYNTAX_ERROR
- See Also:
- Constant Field Values
ParserException
public ParserException(int code)
- The constructor of
ParserException
.
- Parameters:
code
- the error code
ParserException
public ParserException(java.lang.String msg)
- Constructor ParserException
- Parameters:
msg
-
getErrorCode
public int getErrorCode()
- Gets the error code.
- Returns:
- the error code