public abstract class GraalJSException
extends com.oracle.truffle.api.exception.AbstractTruffleException
| Modifier and Type | Class and Description |
|---|---|
static class |
GraalJSException.IsIdenticalOrUndefined |
static class |
GraalJSException.JSStackTraceElement |
| Modifier | Constructor and Description |
|---|---|
protected |
GraalJSException(String message,
com.oracle.truffle.api.nodes.Node node,
int stackTraceLimit) |
protected |
GraalJSException(String message,
Throwable cause,
com.oracle.truffle.api.nodes.Node node,
int stackTraceLimit) |
protected |
GraalJSException(String message,
Throwable cause,
com.oracle.truffle.api.source.SourceSection location,
int stackTraceLimit) |
| Modifier and Type | Method and Description |
|---|---|
protected GraalJSException |
fillInStackTrace(boolean capture,
JSDynamicObject skipFramesUpTo,
boolean customSkip) |
protected static <T extends GraalJSException> |
fillInStackTrace(T exception,
boolean capture) |
protected static <T extends GraalJSException> |
fillInStackTrace(T exception,
boolean capture,
JSDynamicObject skipFramesUpTo,
boolean customSkip) |
abstract Object |
getErrorObject()
Eager access to the ErrorObject.
|
abstract Object |
getErrorObjectLazy()
Could still be null due to lazy initialization.
|
GraalJSException.JSStackTraceElement[] |
getJSStackTrace() |
static GraalJSException.JSStackTraceElement[] |
getJSStackTrace(com.oracle.truffle.api.nodes.Node originatingNode) |
Class<? extends com.oracle.truffle.api.TruffleLanguage<?>> |
getLanguage() |
com.oracle.truffle.api.source.SourceSection |
getSourceLocationInterop() |
boolean |
hasLanguage() |
boolean |
hasSourceLocation() |
int |
identityHashCode(com.oracle.truffle.api.interop.InteropLibrary delegateLib) |
void |
printJSStackTrace() |
static void |
printJSStackTrace(com.oracle.truffle.api.nodes.Node originatingNode) |
void |
setJSStackTrace(GraalJSException.JSStackTraceElement[] jsStackTrace) |
Object |
toDisplayString(boolean allowSideEffects) |
fillInStackTrace, getCause, getLocation, getStackTraceElementLimitaddSuppressed, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected GraalJSException(String message, Throwable cause, com.oracle.truffle.api.nodes.Node node, int stackTraceLimit)
protected GraalJSException(String message, com.oracle.truffle.api.nodes.Node node, int stackTraceLimit)
protected static <T extends GraalJSException> T fillInStackTrace(T exception, boolean capture, JSDynamicObject skipFramesUpTo, boolean customSkip)
protected static <T extends GraalJSException> T fillInStackTrace(T exception, boolean capture)
protected final GraalJSException fillInStackTrace(boolean capture, JSDynamicObject skipFramesUpTo, boolean customSkip)
public boolean hasSourceLocation()
public com.oracle.truffle.api.source.SourceSection getSourceLocationInterop()
throws com.oracle.truffle.api.interop.UnsupportedMessageException
com.oracle.truffle.api.interop.UnsupportedMessageExceptionpublic abstract Object getErrorObjectLazy()
public abstract Object getErrorObject()
public GraalJSException.JSStackTraceElement[] getJSStackTrace()
public void setJSStackTrace(GraalJSException.JSStackTraceElement[] jsStackTrace)
public static GraalJSException.JSStackTraceElement[] getJSStackTrace(com.oracle.truffle.api.nodes.Node originatingNode)
public void printJSStackTrace()
public static void printJSStackTrace(com.oracle.truffle.api.nodes.Node originatingNode)
public final boolean hasLanguage()
public final Class<? extends com.oracle.truffle.api.TruffleLanguage<?>> getLanguage()
public final Object toDisplayString(boolean allowSideEffects)
public final int identityHashCode(com.oracle.truffle.api.interop.InteropLibrary delegateLib)
throws com.oracle.truffle.api.interop.UnsupportedMessageException
com.oracle.truffle.api.interop.UnsupportedMessageException