jmathlib.core.interpreter
Class ControlException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.ArithmeticException
                  extended by jmathlib.core.interpreter.ControlException
All Implemented Interfaces:
java.io.Serializable

public class ControlException
extends java.lang.ArithmeticException

MathLib specific exception

See Also:
Serialized Form

Field Summary
private  OperandToken result
           
static int Return
           
private  int type
           
static int Yield
           
 
Constructor Summary
ControlException()
          Create a new exception object
ControlException(int _type, Token _result)
          Set the message text
 
Method Summary
 OperandToken getResults()
           
 int getType()
           
 
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

Return

public static final int Return
See Also:
Constant Field Values

Yield

public static final int Yield
See Also:
Constant Field Values

type

private int type

result

private OperandToken result
Constructor Detail

ControlException

public ControlException()
Create a new exception object


ControlException

public ControlException(int _type,
                        Token _result)
Set the message text

Parameters:
text - = the text to display
Method Detail

getType

public int getType()

getResults

public OperandToken getResults()

FOOTER

BOTTOM