Class Stmt.Return.Exception

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
technology.sola.script.parser.Stmt.Return.Exception
All Implemented Interfaces:
Serializable
Enclosing class:
Stmt.Return

public static class Stmt.Return.Exception extends RuntimeException
Return is an exception utilized by the Interpreter to throw when a Stmt.Return is being interpreted so that the wrapping SolaScriptFunction can catch it and return the value as the result of the Expr.Call.
See Also:
  • Field Details

  • Constructor Details

    • Exception

      public Exception(@Nullable Object value)
      Creates an instance of this exception with desired return value.
      Parameters:
      value - the return value of the call