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 Details

    • ReturnException

      public ReturnException(Object result)
      Creates the exception with the result of the JavaScript function.
      Parameters:
      result - the alternative result
  • Method Details

    • getResult

      public Object getResult()
      Returns:
      the unexpected result