spring-framework / org.springframework.expression.spel / SpelEvaluationException

SpelEvaluationException

open class SpelEvaluationException : EvaluationException

Root exception for Spring EL related exceptions. Rather than holding a hard coded string indicating the problem, it records a message key and the inserts for the message. See SpelMessage for the list of all possible messages that can occur.

Author
Andy Clement

Author
Juergen Hoeller

Since
3.0

Constructors

<init>

SpelEvaluationException(message: SpelMessage, vararg inserts: Any)
SpelEvaluationException(position: Int, message: SpelMessage, vararg inserts: Any)
SpelEvaluationException(position: Int, cause: Throwable, message: SpelMessage, vararg inserts: Any)
SpelEvaluationException(cause: Throwable, message: SpelMessage, vararg inserts: Any)

Functions

getInserts

open fun getInserts(): Array<Any>

Return the message inserts.

getMessageCode

open fun getMessageCode(): SpelMessage

Return the message code.

setPosition

open fun setPosition(position: Int): Unit

Set the position in the related expression which gave rise to this exception.