koala.dynamicjava.interpreter.error
Class ExecutionError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by koala.dynamicjava.interpreter.error.ExecutionError
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PossibleExecutionError, ReturnException

public class ExecutionError
extends Error

This error is thrown when an unexpected error append while interpreting a statement

Version:
1.0 - 1999/04/30
Author:
Stephane Hillion
See Also:
Serialized Form

Field Summary
static String SHOW_CAUSE_PROPERTY
           
static String SHOW_TRACE_PROPERTY
           
protected  Throwable thrown
           
 
Constructor Summary
ExecutionError(String s, Node n)
          Constructs an ExecutionError with the specified detail message, filename, line and column.
 
Method Summary
 String getMessage()
          Returns the error message string of this exception
 Node getNode()
          Returns the syntax tree node where the error occurs
 void printStackTrace()
          Overridden to delegate to printStackTrace(PrintStream) to print nested exception information.
 void printStackTrace(PrintStream s)
          Overridden to delegate to printStackTrace(PrintWriter) to print nested exception information.
 void printStackTrace(PrintWriter w)
          Handles all calls to printStackTrace(), printing the stack trace of the current exception, and also that of its cause.
 
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
 

Field Detail

thrown

protected Throwable thrown

SHOW_CAUSE_PROPERTY

public static final String SHOW_CAUSE_PROPERTY
See Also:
Constant Field Values

SHOW_TRACE_PROPERTY

public static final String SHOW_TRACE_PROPERTY
See Also:
Constant Field Values
Constructor Detail

ExecutionError

public ExecutionError(String s,
                      Node n)
Constructs an ExecutionError with the specified detail message, filename, line and column.

Parameters:
s - the detail message (a key in a resource file).
n - the syntax tree node where the error occurs
Method Detail

getNode

public Node getNode()
Returns the syntax tree node where the error occurs


printStackTrace

public void printStackTrace()
Overridden to delegate to printStackTrace(PrintStream) to print nested exception information.

Overrides:
printStackTrace in class Throwable
See Also:
printStackTrace(PrintStream)

printStackTrace

public void printStackTrace(PrintStream s)
Overridden to delegate to printStackTrace(PrintWriter) to print nested exception information.

Overrides:
printStackTrace in class Throwable
See Also:
printStackTrace(PrintWriter)

printStackTrace

public void printStackTrace(PrintWriter w)
Handles all calls to printStackTrace(), printing the stack trace of the current exception, and also that of its cause.

Overrides:
printStackTrace in class Throwable

getMessage

public String getMessage()
Returns the error message string of this exception

Overrides:
getMessage in class Throwable