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:
Serializable
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.
- Since:
- 0.8 or earlier
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnexpectedResultException
(Object result) Creates the exception with the alternative result that cannot be represented as a value of the return type. -
Method Summary
Methods inherited from class SlowPathException
fillInStackTrace
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnexpectedResultException
Creates the exception with the alternative result that cannot be represented as a value of the return type.- Parameters:
result
- the alternative result- Since:
- 0.8 or earlier
-
-
Method Details
-
getResult
- Returns:
- the unexpected result
- Since:
- 0.8 or earlier
-