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.
| Modifier and Type | Field and Description |
|---|---|
| private final Object[] | |
| private final SpelMessage |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object[] | |
| public SpelMessage | |
| public void | setPosition(int position)
Set the position in the related expression which gave rise to this exception. |
| inserts | back to summary |
|---|---|
| private final Object[] inserts | |
| message | back to summary |
|---|---|
| private final SpelMessage message | |
| SpelEvaluationException | back to summary |
|---|---|
| public SpelEvaluationException(SpelMessage message, Object... inserts) | |
| SpelEvaluationException | back to summary |
|---|---|
| public SpelEvaluationException(int position, SpelMessage message, Object... inserts) | |
| SpelEvaluationException | back to summary |
|---|---|
| public SpelEvaluationException(int position, Throwable cause, SpelMessage message, Object... inserts) | |
| SpelEvaluationException | back to summary |
|---|---|
| public SpelEvaluationException(Throwable cause, SpelMessage message, Object... inserts) | |
| getInserts | back to summary |
|---|---|
| public Object[] getInserts() Return the message inserts. | |
| getMessageCode | back to summary |
|---|---|
| public SpelMessage getMessageCode() Return the message code. | |
| setPosition | back to summary |
|---|---|
| public void setPosition(int position) Set the position in the related expression which gave rise to this exception. | |