koala.dynamicjava.interpreter.throwable
Class ThrownException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended bykoala.dynamicjava.interpreter.error.ExecutionError
              extended bykoala.dynamicjava.interpreter.throwable.ThrownException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InterpreterException

public class ThrownException
extends ExecutionError

This error is thrown by an interpreted throw statement

See Also:
Serialized Form

Field Summary
 
Fields inherited from class koala.dynamicjava.interpreter.error.ExecutionError
SHOW_CAUSE_PROPERTY, SHOW_TRACE_PROPERTY, thrown
 
Constructor Summary
ThrownException(java.lang.Throwable e)
          Constructs an ThrownExceptionError with no detail message.
ThrownException(java.lang.Throwable e, Node n)
          Constructs an ThrownExceptionError with the specified detail message, filename, line, column and exception.
 
Method Summary
 java.lang.Throwable getException()
          Returns the exception that causes this error throwing
 
Methods inherited from class koala.dynamicjava.interpreter.error.ExecutionError
getMessage, getNode, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThrownException

public ThrownException(java.lang.Throwable e)
Constructs an ThrownExceptionError with no detail message.


ThrownException

public ThrownException(java.lang.Throwable e,
                       Node n)
Constructs an ThrownExceptionError with the specified detail message, filename, line, column and exception.

Parameters:
e - the thrown exception
n - the node in the syntax tree where the error occurs
Method Detail

getException

public java.lang.Throwable getException()
Returns the exception that causes this error throwing



Copyright © 2001 Stephane Hillion. All Rights Reserved.