public final class DebugException extends RuntimeException
DebugException.getDebugStackTrace() to find out the guest language stack trace.
Debugger methods that run guest language code may throw this exception.
| Modifier and Type | Class and Description |
|---|---|
static class |
DebugException.CatchLocation
Represents an exception catch location.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
fillInStackTrace()
Unsupported,
DebugException instances are not writable therefore filling the stack
trace has no effect for them. |
DebugException.CatchLocation |
getCatchLocation()
Get source code location where this exception is to be caught.
|
List<DebugStackTraceElement> |
getDebugStackTrace()
Gets stack trace elements of guest languages.
|
DebugValue |
getExceptionObject()
Get a guest language object representing the exception, if any.
|
StackTraceElement[] |
getStackTrace()
Gets stack trace elements of guest languages.
|
SourceSection |
getThrowLocation()
Get source code location where this exception was thrown from.
|
boolean |
isInternalError()
Returns
true if this exception indicates an internal error. |
void |
printStackTrace() |
void |
printStackTrace(PrintStream s) |
void |
printStackTrace(PrintWriter s) |
void |
setStackTrace(StackTraceElement[] stackTrace)
Unsupported,
DebugException instances are not writable therefore setting the stack
trace has no effect for them. |
addSuppressed, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, toStringpublic Throwable fillInStackTrace()
DebugException instances are not writable therefore filling the stack
trace has no effect for them.fillInStackTrace in class Throwablepublic void setStackTrace(StackTraceElement[] stackTrace)
DebugException instances are not writable therefore setting the stack
trace has no effect for them.setStackTrace in class Throwablepublic StackTraceElement[] getStackTrace()
DebugException.getDebugStackTrace() as the guest language stack elements do not always fit the Java
format for stack trace elements.getStackTrace in class Throwablepublic List<DebugStackTraceElement> getDebugStackTrace()
public void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintStream s)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter s)
printStackTrace in class Throwablepublic boolean isInternalError()
true if this exception indicates an internal error.public DebugValue getExceptionObject()
nullpublic SourceSection getThrowLocation()
null when the thrown location is not known.public DebugException.CatchLocation getCatchLocation()
null
is returned for uncaught exceptions.null in case of uncaught exceptions.