Class ScriptEvaluationException

All Implemented Interfaces:
Serializable

public class ScriptEvaluationException extends SlingException
The ScriptEvaluationException is thrown by the SlingScript.eval(SlingBindings) method if an error occurrs evaluating the script.
See Also:
  • Constructor Details

    • ScriptEvaluationException

      public ScriptEvaluationException(String scriptName, String message)
      Creates an exception describing a script evaluation failure.
      Parameters:
      scriptName - The script name
      message - The detail message
    • ScriptEvaluationException

      public ScriptEvaluationException(String scriptName, String message, Throwable cause)
      Creates an exception describing a script evaluation failure and its cause.
      Parameters:
      scriptName - The script name
      message - The detail message
      cause - The underlying cause
  • Method Details

    • getScriptName

      public String getScriptName()
      Returns the name of the script whose evaluation failed.
      Returns:
      The script name supplied to the constructor