Package org.pkl.core.runtime
Class VmException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.oracle.truffle.api.exception.AbstractTruffleException
org.pkl.core.runtime.VmException
- All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject,Serializable
- Direct Known Subclasses:
VmBugException,VmEvalException,VmStackOverflowException
public abstract class VmException
extends com.oracle.truffle.api.exception.AbstractTruffleException
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final record -
Field Summary
FieldsFields inherited from class com.oracle.truffle.api.exception.AbstractTruffleException
UNLIMITED_STACK_TRACE -
Constructor Summary
ConstructorsConstructorDescriptionVmException(String message, @Nullable Throwable cause, boolean isExternalMessage, Object[] messageArguments, List<VmException.ProgramValue> programValues, @Nullable com.oracle.truffle.api.nodes.Node location, @Nullable com.oracle.truffle.api.source.SourceSection sourceSection, @Nullable String memberName, @Nullable String hint, Map<com.oracle.truffle.api.CallTarget, StackFrame> insertedStackFrames) -
Method Summary
Modifier and TypeMethodDescriptiongetHint()final Map<com.oracle.truffle.api.CallTarget, StackFrame> Stack frames to insert into the stack trace presented to the user.final Object[]final List<VmException.ProgramValue> final @Nullable com.oracle.truffle.api.source.SourceSectionfinal booleanvoidtoPklException(StackFrameTransformer transformer, boolean color) Methods 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
-
Field Details
-
hint
-
-
Constructor Details
-
VmException
public VmException(String message, @Nullable @Nullable Throwable cause, boolean isExternalMessage, Object[] messageArguments, List<VmException.ProgramValue> programValues, @Nullable @Nullable com.oracle.truffle.api.nodes.Node location, @Nullable @Nullable com.oracle.truffle.api.source.SourceSection sourceSection, @Nullable @Nullable String memberName, @Nullable @Nullable String hint, Map<com.oracle.truffle.api.CallTarget, StackFrame> insertedStackFrames)
-
-
Method Details
-
isExternalMessage
public final boolean isExternalMessage() -
getMessageArguments
-
getProgramValues
-
getSourceSection
-
getMemberName
-
getHint
-
setHint
-
getInsertedStackFrames
Stack frames to insert into the stack trace presented to the user. For each entry `(target, frame)`, `frame` will be inserted below the top-most frame associated with `target`. -
toPklException
-