public class ScriptException
extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
scriptBody
The actual script (its content) that caused this exception.
|
protected java.lang.String |
scriptName
The name of the script that caused this exception.
|
protected java.lang.String |
scriptType
The type of the script that caused this exception.
|
| Modifier | Constructor and Description |
|---|---|
|
ScriptException(Script script,
java.lang.String message)
Creates a new script exception for the designated script declaration and
the designated additional message.
|
|
ScriptException(Script script,
java.lang.String message,
java.lang.Throwable cause)
Creates a new script exception for the designated script declaration, the
designated additional message and the cause.
|
protected |
ScriptException(java.lang.String scriptType,
java.lang.String scriptBody)
Creates a new script exception for the designated script.
|
protected |
ScriptException(java.lang.String scriptType,
java.lang.String scriptBody,
java.lang.String message)
Creates a new script exception for the designated script and the designated
additional message.
|
protected |
ScriptException(java.lang.String scriptType,
java.lang.String scriptName,
java.lang.String scriptBody,
java.lang.String message)
Creates a new script exception for the designated script with the
designated name.
|
protected |
ScriptException(java.lang.String scriptType,
java.lang.String scriptName,
java.lang.String scriptBody,
java.lang.String message,
java.lang.Throwable cause)
Creates a new script exception for the designated script with the
designated name, the designated additional message and the cause.
|
protected |
ScriptException(java.lang.String scriptType,
java.lang.String scriptBody,
java.lang.String message,
java.lang.Throwable cause)
Creates a new script exception for the designated script, the designated
additional message and the cause.
|
protected |
ScriptException(java.lang.String scriptType,
java.lang.String scriptBody,
java.lang.Throwable cause)
Creates a new script exception for the designated script and the cause.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getScriptBody()
Gets the actual script (its content) that caused this exception.
|
java.lang.String |
getScriptName()
Gets the name of the script that caused this exception.
|
java.lang.String |
getScriptType()
Gets the type of the script that caused this exception.
|
protected final java.lang.String scriptType
protected final java.lang.String scriptName
nullprotected final java.lang.String scriptBody
protected ScriptException(java.lang.String scriptType,
java.lang.String scriptBody)
scriptType - The type of the script that caused this exception.scriptBody - The name of the script that caused this exception.protected ScriptException(java.lang.String scriptType,
java.lang.String scriptBody,
java.lang.String message)
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.protected ScriptException(java.lang.String scriptType,
java.lang.String scriptName,
java.lang.String scriptBody,
java.lang.String message)
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.protected ScriptException(java.lang.String scriptType,
java.lang.String scriptBody,
java.lang.Throwable cause)
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.protected ScriptException(java.lang.String scriptType,
java.lang.String scriptBody,
java.lang.String message,
java.lang.Throwable cause)
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.protected ScriptException(java.lang.String scriptType,
java.lang.String scriptName,
java.lang.String scriptBody,
java.lang.String message,
java.lang.Throwable cause)
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.public ScriptException(Script script, java.lang.String message)
script - the script declarationmessage - The message describing the problem leading to this
exception.public ScriptException(Script script, java.lang.String message, java.lang.Throwable cause)
script - the script declarationmessage - The message describing the problem leading to this
exception.cause - The cause for this exception.public java.lang.String getScriptType()
public java.lang.String getScriptName()
null, refer to the content.public java.lang.String getScriptBody()