Class ReturnException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.oracle.truffle.api.nodes.ControlFlowException
com.oracle.truffle.js.nodes.control.ReturnException
- All Implemented Interfaces:
Serializable
public final class ReturnException
extends com.oracle.truffle.api.nodes.ControlFlowException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReturnException(Object result) Creates the exception with the result of the JavaScript function. -
Method Summary
Methods inherited from class com.oracle.truffle.api.nodes.ControlFlowException
fillInStackTraceMethods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ReturnException
Creates the exception with the result of the JavaScript function.- Parameters:
result- the alternative result
-
-
Method Details
-
getResult
- Returns:
- the unexpected result
-