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:
  • Field Details

    • sourceSection

      protected final com.oracle.truffle.api.source.SourceSection sourceSection
    • actualValue

      protected final Object actualValue
  • Constructor Details

    • VmTypeMismatchException

      protected VmTypeMismatchException(com.oracle.truffle.api.source.SourceSection sourceSection, Object actualValue)
  • Method Details