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

public final class UserScriptException extends GraalJSException
See Also:
  • 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

      public static UserScriptException create(Object exceptionObject)
    • getErrorObject

      public Object getErrorObject()
      Description copied from class: GraalJSException
      Eager access to the ErrorObject. Use only if you must get a non-null error object.
      Specified by:
      getErrorObject in class GraalJSException
    • getErrorObjectLazy

      public Object getErrorObjectLazy()
      Description copied from class: GraalJSException
      Could still be null due to lazy initialization.
      Specified by:
      getErrorObjectLazy in class GraalJSException
    • isException

      public boolean isException()
    • throwException

      public RuntimeException 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