Class ScriptReturnException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.maven.shared.scriptinterpreter.ScriptException
org.apache.maven.shared.scriptinterpreter.ScriptReturnException
- All Implemented Interfaces:
Serializable
Signals an invalid value returned from script execution.
- Since:
- 1.3
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScriptReturnException
(String message, Object result) Creates a new exception with the specified message and result. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
result
Result
-
-
Constructor Details
-
ScriptReturnException
Creates a new exception with the specified message and result.- Parameters:
message
- The message, may benull
.result
- The cause, may benull
.
-
-
Method Details
-
getResult
Retrieve result returned by script.- Returns:
- script result.
-