Package org.apache.sling.api.scripting
Class ScriptEvaluationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.sling.api.SlingException
org.apache.sling.api.scripting.ScriptEvaluationException
- All Implemented Interfaces:
Serializable
The
ScriptEvaluationException is thrown by the
SlingScript.eval(SlingBindings) method if an error occurrs evaluating
the script.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScriptEvaluationException(String scriptName, String message) Creates an exception describing a script evaluation failure.ScriptEvaluationException(String scriptName, String message, Throwable cause) Creates an exception describing a script evaluation failure and its cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the script whose evaluation failed.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ScriptEvaluationException
Creates an exception describing a script evaluation failure.- Parameters:
scriptName- The script namemessage- The detail message
-
ScriptEvaluationException
Creates an exception describing a script evaluation failure and its cause.- Parameters:
scriptName- The script namemessage- The detail messagecause- The underlying cause
-
-
Method Details
-
getScriptName
Returns the name of the script whose evaluation failed.- Returns:
- The script name supplied to the constructor
-