Class ScriptException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.aristaflow.adept2.model.scripts.ScriptException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ScriptEnvironmentException,ScriptEvaluationException
An exception indicating that there is a problem with a script.
- Author:
- Ulrich Kreher
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionScriptException(Script script, String message) Creates a new script exception for the designated script declaration and the designated additional message.ScriptException(Script script, String message, Throwable cause) Creates a new script exception for the designated script declaration, the designated additional message and the cause.protectedScriptException(String scriptType, String scriptBody) Creates a new script exception for the designated script.protectedScriptException(String scriptType, String scriptBody, String message) Creates a new script exception for the designated script and the designated additional message.protectedScriptException(String scriptType, String scriptName, String scriptBody, String message) Creates a new script exception for the designated script with the designated name.protectedScriptException(String scriptType, String scriptName, String scriptBody, String message, Throwable cause) Creates a new script exception for the designated script with the designated name, the designated additional message and the cause.protectedScriptException(String scriptType, String scriptBody, String message, Throwable cause) Creates a new script exception for the designated script, the designated additional message and the cause.protectedScriptException(String scriptType, String scriptBody, Throwable cause) Creates a new script exception for the designated script and the cause. -
Method Summary
Modifier and TypeMethodDescriptionGets the actual script (its content) that caused this exception.Gets the name of the script that caused this exception.Gets the type of the script that caused this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
scriptType
The type of the script that caused this exception. -
scriptName
The name of the script that caused this exception. This may benull -
scriptBody
The actual script (its content) that caused this exception.
-
-
Constructor Details
-
ScriptException
Creates a new script exception for the designated script.- Parameters:
scriptType- The type of the script that caused this exception.scriptBody- The name of the script that caused this exception.
-
ScriptException
Creates a new script exception for the designated script and the designated additional message.- Parameters:
scriptType- The type of the script that caused this exception.scriptBody- The name of the script that caused this exception.message- The message describing the problem leading to this exception.
-
ScriptException
Creates a new script exception for the designated script with the designated name.- Parameters:
scriptType- The type of the script that caused this exception.scriptName- The name of the script that caused this exception.scriptBody- The actual script (its content) that caused this exception.message- The message describing the problem leading to this exception.
-
ScriptException
Creates a new script exception for the designated script and the cause.- Parameters:
scriptType- The type of the script that caused this exception.scriptBody- The name of the script that caused this exception.cause- The cause for this exception.
-
ScriptException
Creates a new script exception for the designated script, the designated additional message and the cause.- Parameters:
scriptType- The type of the script that caused this exception.scriptBody- The name of the script that caused this exception.message- The message describing the problem leading to this exception.cause- The cause for this exception.
-
ScriptException
protected ScriptException(String scriptType, String scriptName, String scriptBody, String message, Throwable cause) Creates a new script exception for the designated script with the designated name, the designated additional message and the cause.- Parameters:
scriptType- The type of the script that caused this exception.scriptName- The name of the script that caused this exception.scriptBody- The actual script (its content) that caused this exception.message- The message describing the problem leading to this exception.cause- The cause for this exception.
-
ScriptException
Creates a new script exception for the designated script declaration and the designated additional message.- Parameters:
script- the script declarationmessage- The message describing the problem leading to this exception.
-
ScriptException
Creates a new script exception for the designated script declaration, the designated additional message and the cause.- Parameters:
script- the script declarationmessage- The message describing the problem leading to this exception.cause- The cause for this exception.
-
-
Method Details
-
getScriptType
Gets the type of the script that caused this exception.- Returns:
- The type of the script that caused this exception.
-
getScriptName
Gets the name of the script that caused this exception. If this isnull, refer to the content.- Returns:
- The name of the script that caused this exception.
-
getScriptBody
Gets the actual script (its content) that caused this exception.- Returns:
- The actual script (its content) that caused this exception.
-