Class SpelEvaluationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.expression.ExpressionException
org.springframework.expression.EvaluationException
org.springframework.expression.spel.SpelEvaluationException
- All Implemented Interfaces:
- Serializable
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.
- Since:
- 3.0
- Author:
- Andy Clement, Juergen Hoeller
- See Also:
- 
Field SummaryFields inherited from class org.springframework.expression.ExpressionExceptionexpressionString, position
- 
Constructor SummaryConstructorsConstructorDescriptionSpelEvaluationException(int position, @Nullable Throwable cause, SpelMessage message, @Nullable Object... inserts) SpelEvaluationException(int position, SpelMessage message, @Nullable Object... inserts) SpelEvaluationException(@Nullable Throwable cause, SpelMessage message, @Nullable Object... inserts) SpelEvaluationException(SpelMessage message, @Nullable Object... inserts) 
- 
Method SummaryModifier and TypeMethodDescriptionReturn the message inserts.Return the message code.voidsetPosition(int position) Set the position in the related expression which gave rise to this exception.Methods inherited from class org.springframework.expression.ExpressionExceptiongetExpressionString, getMessage, getPosition, getSimpleMessage, toDetailedStringMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
SpelEvaluationException
- 
SpelEvaluationException
- 
SpelEvaluationExceptionpublic SpelEvaluationException(int position, @Nullable Throwable cause, SpelMessage message, @Nullable Object... inserts) 
- 
SpelEvaluationExceptionpublic SpelEvaluationException(@Nullable Throwable cause, SpelMessage message, @Nullable Object... inserts) 
 
- 
- 
Method Details- 
setPositionpublic void setPosition(int position) Set the position in the related expression which gave rise to this exception.
- 
getMessageCodeReturn the message code.
- 
getInsertsReturn the message inserts.
 
-