Top Description Fields Constructors Methods
org.springframework.scripting.support

public Class StandardScriptEvalException

extends RuntimeException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
javax.script.ScriptException

Exception decorating a javax.script.ScriptException coming out of JSR-223 script evaluation, i.e. a javax.script.ScriptEngine#eval call or javax.script.Invocable#invokeMethod / javax.script.Invocable#invokeFunction call.

This exception does not print the Java stacktrace, since the JSR-223 ScriptException results in a rather convoluted text output. From that perspective, this exception is primarily a decorator for a ScriptException root cause passed into an outer exception.

Authors
Juergen Hoeller, Sebastien Deleuze
Since
4.2.2

Field Summary

Modifier and TypeField and Description
private final ScriptException

Constructor Summary

AccessConstructor and Description
public
StandardScriptEvalException(ScriptException ex)

Construct a new script eval exception with the specified original exception.

Method Summary

Modifier and TypeMethod and Description
public synchronized Throwable
fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace.
public final ScriptException

Field Detail

scriptExceptionback to summary
private final ScriptException scriptException

Constructor Detail

StandardScriptEvalExceptionback to summary
public StandardScriptEvalException(ScriptException ex)

Construct a new script eval exception with the specified original exception.

Method Detail

fillInStackTraceback to summary
public synchronized Throwable fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Doc from java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace. This method records within this Throwable object information about the current state of the stack frames for the current thread.

If the stack trace of this Throwable is not writable, calling this method has no effect.

Returns:Throwable

a reference to this Throwable instance.

Annotations
@Override
getScriptExceptionback to summary
public final ScriptException getScriptException()