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,
Object... inserts) |
SpelEvaluationException(int position,
Throwable cause,
SpelMessage message,
Object... inserts) |
SpelEvaluationException(SpelMessage message,
Object... inserts) |
SpelEvaluationException(Throwable cause,
SpelMessage message,
Object... inserts) |
Modifier and Type | Method and Description |
---|---|
Object[] |
getInserts() |
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
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SpelEvaluationException(SpelMessage message, Object... inserts)
public SpelEvaluationException(int position, SpelMessage message, Object... inserts)
public SpelEvaluationException(int position, Throwable cause, SpelMessage message, Object... inserts)
public SpelEvaluationException(Throwable cause, SpelMessage message, Object... inserts)
public 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 Object[] getInserts()