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,java.io.Serializable
- Direct Known Subclasses:
VmBugException,VmEvalException,VmStackOverflowException
public abstract class VmException extends com.oracle.truffle.api.exception.AbstractTruffleException- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVmException.Kindstatic classVmException.ProgramValue
-
Constructor Summary
Constructors Constructor Description VmException(java.lang.String message, @Nullable java.lang.Throwable cause, boolean isExternalMessage, java.lang.Object[] messageArguments, java.util.List<VmException.ProgramValue> programValues, @Nullable com.oracle.truffle.api.nodes.Node location, @Nullable com.oracle.truffle.api.source.SourceSection sourceSection, @Nullable java.lang.String memberName, @Nullable java.lang.String hint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.StringgetHint()java.util.Map<com.oracle.truffle.api.CallTarget,StackFrame>getInsertedStackFrames()Stack frames to insert into the stack trace presented to the user.@Nullable java.lang.StringgetMemberName()java.lang.Object[]getMessageArguments()java.util.List<VmException.ProgramValue>getProgramValues()@Nullable com.oracle.truffle.api.source.SourceSectiongetSourceSection()booleanisExternalMessage()voidsetHint(@Nullable java.lang.String hint)PklExceptiontoPklException(StackFrameTransformer transformer)-
Methods inherited from class com.oracle.truffle.api.exception.AbstractTruffleException
fillInStackTrace, getCause, getLocation, getStackTraceElementLimit
-
-
-
-
Field Detail
-
hint
protected @Nullable java.lang.String hint
-
-
Constructor Detail
-
VmException
public VmException(java.lang.String message, @Nullable java.lang.Throwable cause, boolean isExternalMessage, java.lang.Object[] messageArguments, java.util.List<VmException.ProgramValue> programValues, @Nullable com.oracle.truffle.api.nodes.Node location, @Nullable com.oracle.truffle.api.source.SourceSection sourceSection, @Nullable java.lang.String memberName, @Nullable java.lang.String hint)
-
-
Method Detail
-
isExternalMessage
public final boolean isExternalMessage()
-
getMessageArguments
public final java.lang.Object[] getMessageArguments()
-
getProgramValues
public final java.util.List<VmException.ProgramValue> getProgramValues()
-
getSourceSection
public final @Nullable com.oracle.truffle.api.source.SourceSection getSourceSection()
-
getMemberName
public final @Nullable java.lang.String getMemberName()
-
getHint
public @Nullable java.lang.String getHint()
-
setHint
public void setHint(@Nullable java.lang.String hint)
-
getInsertedStackFrames
public final java.util.Map<com.oracle.truffle.api.CallTarget,StackFrame> 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
public PklException toPklException(StackFrameTransformer transformer)
-
-