|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Error
koala.dynamicjava.interpreter.error.ExecutionError
This error is thrown when an unexpected error append while interpreting a statement
Field Summary | |
static java.lang.String |
SHOW_CAUSE_PROPERTY
|
static java.lang.String |
SHOW_TRACE_PROPERTY
|
protected java.lang.Throwable |
thrown
|
Constructor Summary | |
ExecutionError()
Constructs an ExecutionError with no detail message. |
|
ExecutionError(java.lang.String s)
Constructs an ExecutionError with the specified
detail message. |
|
ExecutionError(java.lang.String s,
Node n)
Constructs an ExecutionError with the specified
detail message, filename, line and column. |
|
ExecutionError(java.lang.Throwable thrown)
|
Method Summary | |
java.lang.String |
getMessage()
Returns the errort 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(java.io.PrintStream s)
Overridden to delegate to printStackTrace(PrintWriter) to print nested exception information. |
void |
printStackTrace(java.io.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 |
protected java.lang.Throwable thrown
public static final java.lang.String SHOW_CAUSE_PROPERTY
public static final java.lang.String SHOW_TRACE_PROPERTY
Constructor Detail |
public ExecutionError()
ExecutionError
with no detail message.
public ExecutionError(java.lang.String s)
ExecutionError
with the specified
detail message.
s
- the detail message (a key in a resource file).public ExecutionError(java.lang.String s, Node n)
ExecutionError
with the specified
detail message, filename, line and column.
s
- the detail message (a key in a resource file).n
- the syntax tree node where the error occurspublic ExecutionError(java.lang.Throwable thrown)
Method Detail |
public Node getNode()
public void printStackTrace()
printStackTrace(PrintStream)
public void printStackTrace(java.io.PrintStream s)
printStackTrace(PrintWriter)
public void printStackTrace(java.io.PrintWriter w)
public java.lang.String getMessage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |