edu.vub.at.exceptions
Class InterpreterException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byedu.vub.at.exceptions.InterpreterException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
XArityMismatch, XClassNotFound, XDuplicateSlot, XIllegalApplication, XIllegalArgument, XIllegalIndex, XIllegalOperation, XIllegalParameter, XIllegalQuote, XIllegalSplice, XIllegalUnquote, XImportConflict, XIndexOutOfBounds, XIOProblem, XJavaException, XNotInstantiatable, XParseError, XReflectionFailure, XSelectorNotFound, XSymbiosisFailure, XTypeMismatch, XUnassignableField, XUndefinedField, XUserDefined

public abstract class InterpreterException
extends java.lang.Exception

ATException is the superclass of all exceptions thrown by the AmbientTalk interpreter. TODO tvcutsem Should NATException not implement the interface ATException, such that all of our code can be typed by 'throws ATException' clauses instead of 'throws NATException' clauses. The latter will cause problems with reflection. TODO tvcutsem Shouldn't we parameterize NATExceptions with an ATContext and possibly also an ATAbstractGrammar for evaluation errors. This allows the user to inspect both which expression was evaluated at exception-raising-time and allows him to inspect the context at exception-raising-time.

Author:
smostinc
See Also:
Serialized Form

Field Summary
private  InvocationStack runtimeStack_
           
private static long serialVersionUID
           
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
InterpreterException()
           
InterpreterException(java.lang.String message)
           
InterpreterException(java.lang.String message, java.lang.Throwable cause)
           
InterpreterException(java.lang.Throwable cause)
           
 
Method Summary
 ATObject getAmbientTalkRepresentation()
           
abstract  ATStripe getStripeType()
           
 void printAmbientTalkStackTrace(java.io.PrintStream out)
           
 
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

runtimeStack_

private final InvocationStack runtimeStack_
Constructor Detail

InterpreterException

public InterpreterException()

InterpreterException

public InterpreterException(java.lang.String message,
                            java.lang.Throwable cause)

InterpreterException

public InterpreterException(java.lang.String message)

InterpreterException

public InterpreterException(java.lang.Throwable cause)
Method Detail

printAmbientTalkStackTrace

public void printAmbientTalkStackTrace(java.io.PrintStream out)

getAmbientTalkRepresentation

public ATObject getAmbientTalkRepresentation()

getStripeType

public abstract ATStripe getStripeType()