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:
java.io.Serializable
- Direct Known Subclasses:
VmTypeMismatchException.Constraint,VmTypeMismatchException.Nothing,VmTypeMismatchException.Simple,VmTypeMismatchException.Union
public abstract class VmTypeMismatchException extends com.oracle.truffle.api.nodes.ControlFlowExceptionIndicates 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVmTypeMismatchException.Constraintstatic classVmTypeMismatchException.Nothingstatic classVmTypeMismatchException.Simplestatic classVmTypeMismatchException.Union
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ObjectactualValueprotected com.oracle.truffle.api.source.SourceSectionsourceSection
-
Constructor Summary
Constructors Modifier Constructor Description protectedVmTypeMismatchException(com.oracle.truffle.api.source.SourceSection sourceSection, java.lang.Object actualValue)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voiddescribe(java.lang.StringBuilder builder, java.lang.String indent)abstract VmExceptiontoVmException()
-
-
-
Method Detail
-
describe
public abstract void describe(java.lang.StringBuilder builder, java.lang.String indent)
-
toVmException
public abstract VmException toVmException()
-
-