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 SummaryConstructorsConstructorDescriptionConstructor 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 SummaryModifier and TypeMethodDescriptionReturn the source for the offending script.Methods inherited from class NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
ScriptCompilationExceptionConstructor for ScriptCompilationException.- Parameters:
- msg- the detail message
 
- 
ScriptCompilationException
- 
ScriptCompilationExceptionConstructor for ScriptCompilationException.- Parameters:
- scriptSource- the source for the offending script
- msg- the detail message
- Since:
- 4.2
 
- 
ScriptCompilationExceptionConstructor for ScriptCompilationException.- Parameters:
- scriptSource- the source for the offending script
- cause- the root cause (usually from using an underlying script compiler API)
 
- 
ScriptCompilationExceptionConstructor for ScriptCompilationException.- Parameters:
- scriptSource- the source for the offending script
- msg- the detail message
- cause- the root cause (usually from using an underlying script compiler API)
 
 
- 
- 
Method Details- 
getScriptSourceReturn the source for the offending script.- Returns:
- the source, or nullif not available
 
 
-