public final class UserScriptException extends GraalJSException
GraalJSException.IsIdenticalOrUndefined, GraalJSException.JSStackTraceElement| Modifier and Type | Method and Description |
|---|---|
static UserScriptException |
create(Object exceptionObject) |
static UserScriptException |
create(Object exceptionObject,
com.oracle.truffle.api.nodes.Node originatingNode,
int stackTraceLimit) |
static UserScriptException |
createCapture(Object exceptionObject,
com.oracle.truffle.api.nodes.Node originatingNode,
int stackTraceLimit) |
static UserScriptException |
createCapture(Object exceptionObject,
com.oracle.truffle.api.nodes.Node originatingNode,
int stackTraceLimit,
JSDynamicObject skipFramesUpTo,
boolean customSkip) |
Object |
getErrorObject()
Eager access to the ErrorObject.
|
Object |
getErrorObjectLazy()
Could still be null due to lazy initialization.
|
Object |
getExceptionMessage() |
com.oracle.truffle.api.interop.ExceptionType |
getExceptionType() |
boolean |
hasExceptionMessage() |
boolean |
isException() |
boolean |
isExceptionIncompleteSource() |
RuntimeException |
throwException() |
fillInStackTrace, fillInStackTrace, fillInStackTrace, getJSStackTrace, getJSStackTrace, getJSStackTrace, getLanguage, getSourceLocationInterop, hasLanguage, hasSourceLocation, identityHashCode, printJSStackTrace, printJSStackTrace, setJSStackTrace, toDisplayStringfillInStackTrace, getCause, getLocation, getStackTraceElementLimitaddSuppressed, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static UserScriptException createCapture(Object exceptionObject, com.oracle.truffle.api.nodes.Node originatingNode, int stackTraceLimit, JSDynamicObject skipFramesUpTo, boolean customSkip)
public static UserScriptException createCapture(Object exceptionObject, com.oracle.truffle.api.nodes.Node originatingNode, int stackTraceLimit)
public static UserScriptException create(Object exceptionObject, com.oracle.truffle.api.nodes.Node originatingNode, int stackTraceLimit)
public static UserScriptException create(Object exceptionObject)
public Object getErrorObject()
GraalJSExceptiongetErrorObject in class GraalJSExceptionpublic Object getErrorObjectLazy()
GraalJSExceptiongetErrorObjectLazy in class GraalJSExceptionpublic boolean isException()
public RuntimeException throwException()
public com.oracle.truffle.api.interop.ExceptionType getExceptionType()
public boolean isExceptionIncompleteSource()
public boolean hasExceptionMessage()
public Object getExceptionMessage() throws com.oracle.truffle.api.interop.UnsupportedMessageException
com.oracle.truffle.api.interop.UnsupportedMessageException