org.opensourcephysics.ejs.control.value
Class ParserException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Field Summary
static int SYNTAX_ERROR
           
 
Constructor Summary
ParserException(int code)
          The constructor of ParserException.
ParserException(java.lang.String msg)
          Constructor ParserException
 
Method Summary
 int getErrorCode()
          Gets the error code.
 
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
 

Field Detail

SYNTAX_ERROR

public static final int SYNTAX_ERROR
See Also:
Constant Field Values
Constructor Detail

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 -
Method Detail

getErrorCode

public int getErrorCode()
Gets the error code.

Returns:
the error code