public class SpelEvaluationException extends EvaluationException
SpelMessage
for the list of all possible messages that can occur.expressionString, position
Constructor and Description |
---|
SpelEvaluationException(int position,
SpelMessage message,
java.lang.Object... inserts) |
SpelEvaluationException(int position,
java.lang.Throwable cause,
SpelMessage message,
java.lang.Object... inserts) |
SpelEvaluationException(SpelMessage message,
java.lang.Object... inserts) |
SpelEvaluationException(java.lang.Throwable cause,
SpelMessage message,
java.lang.Object... inserts) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getInserts() |
java.lang.String |
getMessage()
Return the exception message.
|
SpelMessage |
getMessageCode() |
void |
setPosition(int position)
Set the position in the related expression which gave rise to this exception.
|
getExpressionString, getPosition, getSimpleMessage, toDetailedString
public SpelEvaluationException(SpelMessage message, java.lang.Object... inserts)
public SpelEvaluationException(int position, SpelMessage message, java.lang.Object... inserts)
public SpelEvaluationException(int position, java.lang.Throwable cause, SpelMessage message, java.lang.Object... inserts)
public SpelEvaluationException(java.lang.Throwable cause, SpelMessage message, java.lang.Object... inserts)
public java.lang.String getMessage()
ExpressionException
ExpressionException.toDetailedString()
.getMessage
in class ExpressionException
Throwable.getMessage()
public SpelMessage getMessageCode()
public void setPosition(int position)
position
- the position in the expression that gave rise to the exceptionpublic java.lang.Object[] getInserts()