spring-framework / org.springframework.scripting.support / StandardScriptEvalException

StandardScriptEvalException

open class StandardScriptEvalException : RuntimeException

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.

Author
Juergen Hoeller

Author
Sebastien Deleuze

Since
4.2.2

Constructors

<init>

StandardScriptEvalException(ex: ScriptException)

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

Functions

fillInStackTrace

open fun fillInStackTrace(): Throwable

getScriptException

fun getScriptException(): ScriptException