edu.princeton.toy.lang
Class TException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TException
public TException(TExceptionType type)
- Constructs a new TException object with the given type.
getType
public TExceptionType getType()
- Returns the type of this exception.
- Returns:
- The type of this exception. This is gauranteed to be non-null.