Class UserScriptException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.oracle.truffle.api.exception.AbstractTruffleException
com.oracle.truffle.js.runtime.GraalJSException
com.oracle.truffle.js.runtime.UserScriptException
- All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.js.runtime.GraalJSException
GraalJSException.IsIdenticalOrUndefined, GraalJSException.JSStackTraceElement -
Field Summary
Fields inherited from class com.oracle.truffle.api.exception.AbstractTruffleException
UNLIMITED_STACK_TRACE -
Method Summary
Modifier and TypeMethodDescriptionstatic UserScriptExceptionstatic UserScriptExceptioncreate(Object exceptionObject, com.oracle.truffle.api.nodes.Node originatingNode, int stackTraceLimit) static UserScriptExceptioncreateCapture(Object exceptionObject, com.oracle.truffle.api.nodes.Node originatingNode, int stackTraceLimit) static UserScriptExceptioncreateCapture(Object exceptionObject, com.oracle.truffle.api.nodes.Node originatingNode, int stackTraceLimit, JSDynamicObject skipFramesUpTo, boolean customSkip) Eager access to the ErrorObject.Could still be null due to lazy initialization.com.oracle.truffle.api.interop.ExceptionTypebooleanbooleanbooleanMethods inherited from class com.oracle.truffle.js.runtime.GraalJSException
concatErrorNameAndMessage, fillInStackTrace, fillInStackTrace, fillInStackTrace, getErrorMessageSafe, getErrorNameSafe, getJSStackTrace, getJSStackTrace, getJSStackTrace, getLanguage, getSourceLocationInterop, hasLanguage, hasSourceLocation, identityHashCode, printJSStackTrace, printJSStackTrace, setJSStackTrace, toDisplayStringMethods inherited from class com.oracle.truffle.api.exception.AbstractTruffleException
fillInStackTrace, getCause, getEncapsulatingSourceSection, getLocation, getStackTraceElementLimitMethods inherited from class java.lang.Throwable
addSuppressed, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
createCapture
public static UserScriptException createCapture(Object exceptionObject, com.oracle.truffle.api.nodes.Node originatingNode, int stackTraceLimit, JSDynamicObject skipFramesUpTo, boolean customSkip) -
createCapture
public static UserScriptException createCapture(Object exceptionObject, com.oracle.truffle.api.nodes.Node originatingNode, int stackTraceLimit) -
create
public static UserScriptException create(Object exceptionObject, com.oracle.truffle.api.nodes.Node originatingNode, int stackTraceLimit) -
create
-
getErrorObject
Description copied from class:GraalJSExceptionEager access to the ErrorObject. Use only if you must get a non-null error object.- Specified by:
getErrorObjectin classGraalJSException
-
getErrorObjectLazy
Description copied from class:GraalJSExceptionCould still be null due to lazy initialization.- Specified by:
getErrorObjectLazyin classGraalJSException
-
isException
public boolean isException() -
throwException
-
getExceptionType
public com.oracle.truffle.api.interop.ExceptionType getExceptionType() -
isExceptionIncompleteSource
public boolean isExceptionIncompleteSource() -
hasExceptionMessage
public boolean hasExceptionMessage() -
getExceptionMessage
public Object getExceptionMessage() throws com.oracle.truffle.api.interop.UnsupportedMessageException- Throws:
com.oracle.truffle.api.interop.UnsupportedMessageException
-