Package com.oracle.truffle.api.nodes
Class UnexpectedResultException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.oracle.truffle.api.nodes.SlowPathException
-
- com.oracle.truffle.api.nodes.UnexpectedResultException
-
- All Implemented Interfaces:
java.io.Serializable
public final class UnexpectedResultException extends SlowPathException
An exception that should be thrown if the return value cannot be represented as a value of the return type. The Truffle optimizer has special knowledge of this exception class and will never compile a catch block that catches this exception type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnexpectedResultException(java.lang.Object result)
Creates the exception with the alternative result that cannot be represented as a value of the return type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getResult()
-
Methods inherited from class com.oracle.truffle.api.nodes.SlowPathException
fillInStackTrace
-
-