Class FrameSlotTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
com.oracle.truffle.api.frame.FrameSlotTypeException
- All Implemented Interfaces:
Serializable
Exception thrown if the frame slot kind does not match the expected kind.
- Since:
- 0.8 or earlier
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FrameSlotTypeException
create
(int slot, FrameSlotKind expectedKind, FrameSlotKind actualKind) Creates a new frame slot type exception.Returns the actual frame slot kind when the exception occurred.Returns the expected frame slot kind when the exception occurred.int
getSlot()
Returns the frame slot index that was read.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FrameSlotTypeException
Deprecated.usecreate(int, FrameSlotKind, FrameSlotKind)
instead- Since:
- 0.8 or earlier
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
- Since:
- 24.2
-
getSlot
public int getSlot()Returns the frame slot index that was read.- Since:
- 24.2
-
getExpectedKind
Returns the expected frame slot kind when the exception occurred.- Since:
- 24.2
-
getActualKind
Returns the actual frame slot kind when the exception occurred.- Since:
- 24.2
-
create
public static FrameSlotTypeException create(int slot, FrameSlotKind expectedKind, FrameSlotKind actualKind) Creates a new frame slot type exception.- Parameters:
slot
- the frame slot index used when readingexpectedKind
- the expected frame slot kind when readingactualKind
- the actual frame slot kind when reading- Since:
- 24.2
-
create(int, FrameSlotKind, FrameSlotKind)
instead