Class ScriptEvaluationException

  • All Implemented Interfaces:
    Serializable

    public class ScriptEvaluationException
    extends ScriptException
    An exception indicating that there is a problem with the evaluation of a script. The problem lies not in the environment but usually in the code of the script.
    Author:
    Ulrich Kreher
    See Also:
    Serialized Form
    • Constructor Detail

      • ScriptEvaluationException

        public ScriptEvaluationException​(Script script,
                                         String message)
        Creates a new script evaluation exception for the designated script declaration and the designated additional message.
        Parameters:
        script - the script declaration
        message - The message describing the problem leading to this exception.
      • ScriptEvaluationException

        public ScriptEvaluationException​(Script script,
                                         String message,
                                         Throwable cause)
        Creates a new script evaluation exception for the designated script declaration, the designated additional message and the cause.
        Parameters:
        script - the script declaration
        message - The message describing the problem leading to this exception.
        cause - The cause for this exception.
      • ScriptEvaluationException

        public ScriptEvaluationException​(String scriptType,
                                         String scriptName,
                                         String scriptBody,
                                         String message)
        Creates a new script environment exception with the designated details.
        Parameters:
        scriptType - The type of the script that caused this exception. This must not be null.
        scriptName - The name of the script that caused this exception.
        scriptBody - The actual script (its content) that caused this exception. This must not be null.
        message - The message describing the problem leading to this exception.