Class ScriptReturnException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ScriptReturnException
    extends ScriptException
    Signals an invalid value returned from script execution.
    Since:
    1.3
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object result
      Result
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      ScriptReturnException​(java.lang.String message, java.lang.Object result)
      Creates a new exception with the specified message and result.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getResult()
      Retrieve result returned by script.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • result

        private final java.lang.Object result
        Result
    • Constructor Detail

      • ScriptReturnException

        ScriptReturnException​(java.lang.String message,
                              java.lang.Object result)
        Creates a new exception with the specified message and result.
        Parameters:
        message - The message, may be null.
        result - The cause, may be null.
    • Method Detail

      • getResult

        public java.lang.Object getResult()
        Retrieve result returned by script.
        Returns:
        script result.