Top Description Fields Constructors Methods
org.springframework.scripting

public Class ScriptCompilationException

extends NestedRuntimeException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.core.NestedRuntimeException, org.springframework.lang.Nullable

Exception to be thrown on script compilation failure.
Author
Juergen Hoeller
Since
2.0

Field Summary

Modifier and TypeField and Description
private final ScriptSource

Constructor Summary

AccessConstructor and Description
public
ScriptCompilationException(String
the detail message
msg
)

Constructor for ScriptCompilationException.

public
ScriptCompilationException(String
the detail message
msg
,
Throwable
the root cause (usually from using an underlying script compiler API)
cause
)

Constructor for ScriptCompilationException.

public
ScriptCompilationException(ScriptSource
the source for the offending script
scriptSource
,
String
the detail message
msg
)

Constructor for ScriptCompilationException.

public
ScriptCompilationException(ScriptSource
the source for the offending script
scriptSource
,
Throwable
the root cause (usually from using an underlying script compiler API)
cause
)

Constructor for ScriptCompilationException.

public
ScriptCompilationException(ScriptSource
the source for the offending script
scriptSource
,
String
the detail message
msg
,
Throwable
the root cause (usually from using an underlying script compiler API)
cause
)

Constructor for ScriptCompilationException.

Method Summary

Modifier and TypeMethod and Description
public ScriptSource

Returns:

the source, or null if not available
getScriptSource
()

Return the source for the offending script.

Inherited from org.springframework.core.NestedRuntimeException:
containsgetMostSpecificCausegetRootCause

Field Detail

scriptSourceback to summary
private final ScriptSource scriptSource
Annotations
@Nullable

Constructor Detail

ScriptCompilationExceptionback to summary
public ScriptCompilationException(String msg)

Constructor for ScriptCompilationException.

Parameters
msg:String

the detail message

ScriptCompilationExceptionback to summary
public ScriptCompilationException(String msg, Throwable cause)

Constructor for ScriptCompilationException.

Parameters
msg:String

the detail message

cause:Throwable

the root cause (usually from using an underlying script compiler API)

ScriptCompilationExceptionback to summary
public ScriptCompilationException(ScriptSource scriptSource, String msg)

Constructor for ScriptCompilationException.

Parameters
scriptSource:ScriptSource

the source for the offending script

msg:String

the detail message

Since
4.2
ScriptCompilationExceptionback to summary
public ScriptCompilationException(ScriptSource scriptSource, Throwable cause)

Constructor for ScriptCompilationException.

Parameters
scriptSource:ScriptSource

the source for the offending script

cause:Throwable

the root cause (usually from using an underlying script compiler API)

ScriptCompilationExceptionback to summary
public ScriptCompilationException(ScriptSource scriptSource, String msg, Throwable cause)

Constructor for ScriptCompilationException.

Parameters
scriptSource:ScriptSource

the source for the offending script

msg:String

the detail message

cause:Throwable

the root cause (usually from using an underlying script compiler API)

Method Detail

getScriptSourceback to summary
public ScriptSource getScriptSource()

Return the source for the offending script.

Returns:ScriptSource

the source, or null if not available

Annotations
@Nullable