Package org.pkl.core.ast.type
Class VmTypeMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.oracle.truffle.api.nodes.ControlFlowException
org.pkl.core.ast.type.VmTypeMismatchException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
VmTypeMismatchException.Constraint,VmTypeMismatchException.Nothing,VmTypeMismatchException.Simple,VmTypeMismatchException.Union
public abstract class VmTypeMismatchException
extends com.oracle.truffle.api.nodes.ControlFlowException
Indicates that a type check failed. [TypeNode]s use this exception instead of [VmException] to
make type checking of union types efficient. Note that any [TruffleBoundary] between throw and
catch location of this exception must set `transferToInterpreterOnException = false`. (Currently
there aren't any.)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Objectprotected final com.oracle.truffle.api.source.SourceSection -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVmTypeMismatchException(com.oracle.truffle.api.source.SourceSection sourceSection, Object actualValue) -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddescribe(StringBuilder builder, String indent) abstract VmExceptionMethods inherited from class com.oracle.truffle.api.nodes.ControlFlowException
fillInStackTraceMethods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
sourceSection
protected final com.oracle.truffle.api.source.SourceSection sourceSection -
actualValue
-
-
Constructor Details
-
VmTypeMismatchException
protected VmTypeMismatchException(com.oracle.truffle.api.source.SourceSection sourceSection, Object actualValue)
-
-
Method Details
-
describe
-
toVmException
-