类 ScriptCompilationException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.scripting.ScriptCompilationException
- 所有已实现的接口:
Serializable
public class ScriptCompilationException extends NestedRuntimeException
Exception to be thrown on script compilation failure.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 ScriptCompilationException(String msg)
Constructor 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.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ScriptSource
getScriptSource()
Return the source for the offending script.从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
ScriptCompilationException
public ScriptCompilationException(String msg)
Constructor for ScriptCompilationException.- 参数:
msg
- the detail message
ScriptCompilationException
public ScriptCompilationException(String msg, Throwable cause)
Constructor for ScriptCompilationException.- 参数:
msg
- the detail messagecause
- the root cause (usually from using an underlying script compiler API)
ScriptCompilationException
public ScriptCompilationException(ScriptSource scriptSource, String msg)
Constructor for ScriptCompilationException.- 参数:
scriptSource
- the source for the offending scriptmsg
- the detail message- 从以下版本开始:
- 4.2
ScriptCompilationException
public ScriptCompilationException(ScriptSource scriptSource, Throwable cause)
Constructor for ScriptCompilationException.- 参数:
scriptSource
- the source for the offending scriptcause
- the root cause (usually from using an underlying script compiler API)
ScriptCompilationException
public ScriptCompilationException(ScriptSource scriptSource, String msg, Throwable cause)
Constructor for ScriptCompilationException.- 参数:
scriptSource
- the source for the offending scriptmsg
- the detail messagecause
- the root cause (usually from using an underlying script compiler API)
方法详细资料
getScriptSource
public ScriptSource getScriptSource()
Return the source for the offending script.- 返回:
- the source, or
null
if not available