Package org.springframework.scripting
Class ScriptCompilationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.scripting.ScriptCompilationException
- All Implemented Interfaces:
Serializable
Exception to be thrown on script compilation failure.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructor for ScriptCompilationException.ScriptCompilationException
(String msg, Throwable cause) Constructor for ScriptCompilationException.ScriptCompilationException
(ScriptSource scriptSource, String msg) Constructor for ScriptCompilationException.ScriptCompilationException
(ScriptSource scriptSource, String msg, Throwable cause) Constructor for ScriptCompilationException.ScriptCompilationException
(ScriptSource scriptSource, Throwable cause) Constructor for ScriptCompilationException. -
Method Summary
Modifier and TypeMethodDescriptionReturn the source for the offending script.Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ScriptCompilationException
Constructor for ScriptCompilationException.- Parameters:
msg
- the detail message
-
ScriptCompilationException
Constructor for ScriptCompilationException.- Parameters:
msg
- the detail messagecause
- the root cause (usually from using an underlying script compiler API)
-
ScriptCompilationException
Constructor for ScriptCompilationException.- Parameters:
scriptSource
- the source for the offending scriptmsg
- the detail message- Since:
- 4.2
-
ScriptCompilationException
Constructor for ScriptCompilationException.- Parameters:
scriptSource
- the source for the offending scriptcause
- the root cause (usually from using an underlying script compiler API)
-
ScriptCompilationException
Constructor for ScriptCompilationException.- Parameters:
scriptSource
- the source for the offending scriptmsg
- the detail messagecause
- the root cause (usually from using an underlying script compiler API)
-
-
Method Details
-
getScriptSource
Return the source for the offending script.- Returns:
- the source, or
null
if not available
-