edu.princeton.toy.lang
Class TException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.princeton.toy.lang.TException
All Implemented Interfaces:
Serializable

public class TException
extends Exception

TException is an exception passed down internally in the step() function of TVirtualMachine. It signals one of several types of exception that can occur in the "stricter" virtual TOY machine.

See Also:
Serialized Form

Constructor Summary
TException(TExceptionType type)
          Constructs a new TException object with the given type.
 
Method Summary
 TExceptionType getType()
          Returns the type of this exception.
 
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
 

Constructor Detail

TException

public TException(TExceptionType type)
Constructs a new TException object with the given type.

Method Detail

getType

public TExceptionType getType()
Returns the type of this exception.

Returns:
The type of this exception. This is gauranteed to be non-null.