public class ScriptCompilationException extends NestedRuntimeException
Modifier and Type | Field and Description |
---|---|
private ScriptSource |
scriptSource |
Constructor and Description |
---|
ScriptCompilationException(ScriptSource scriptSource,
java.lang.String msg)
Constructor for ScriptCompilationException.
|
ScriptCompilationException(ScriptSource scriptSource,
java.lang.String msg,
java.lang.Throwable cause)
Constructor for ScriptCompilationException.
|
ScriptCompilationException(ScriptSource scriptSource,
java.lang.Throwable cause)
Constructor for ScriptCompilationException.
|
ScriptCompilationException(java.lang.String msg)
Constructor for ScriptCompilationException.
|
ScriptCompilationException(java.lang.String msg,
java.lang.Throwable cause)
Constructor for ScriptCompilationException.
|
Modifier and Type | Method and Description |
---|---|
ScriptSource |
getScriptSource()
Return the source for the offending script.
|
contains, getMessage, getMostSpecificCause, getRootCause
private ScriptSource scriptSource
public ScriptCompilationException(java.lang.String msg)
msg
- the detail messagepublic ScriptCompilationException(java.lang.String msg, java.lang.Throwable cause)
msg
- the detail messagecause
- the root cause (usually from using an underlying script compiler API)public ScriptCompilationException(ScriptSource scriptSource, java.lang.String msg)
scriptSource
- the source for the offending scriptmsg
- the detail messagepublic ScriptCompilationException(ScriptSource scriptSource, java.lang.Throwable cause)
scriptSource
- the source for the offending scriptcause
- the root cause (usually from using an underlying script compiler API)public ScriptCompilationException(ScriptSource scriptSource, java.lang.String msg, java.lang.Throwable cause)
scriptSource
- the source for the offending scriptmsg
- the detail messagecause
- the root cause (usually from using an underlying script compiler API)@Nullable public ScriptSource getScriptSource()
null
if not available