Top Description Fields Constructors Methods
org.springframework.expression.spel

public Class SpelEvaluationException

extends EvaluationException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.expression.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.

Authors
Andy Clement, Juergen Hoeller
Since
3.0

Field Summary

Modifier and TypeField and Description
private final Object[]
private final SpelMessage

Constructor Summary

AccessConstructor and Description
public
public
SpelEvaluationException(int position, SpelMessage message, Object... inserts)

public
SpelEvaluationException(int position, Throwable cause, SpelMessage message, Object... inserts)

public

Method Summary

Modifier and TypeMethod and Description
public Object[]
getInserts()

Return the message inserts.

public SpelMessage
getMessageCode()

Return the message code.

public void
setPosition(int position)

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

Field Detail

insertsback to summary
private final Object[] inserts
messageback to summary
private final SpelMessage message

Constructor Detail

SpelEvaluationExceptionback to summary
public SpelEvaluationException(SpelMessage message, Object... inserts)
SpelEvaluationExceptionback to summary
public SpelEvaluationException(int position, SpelMessage message, Object... inserts)
SpelEvaluationExceptionback to summary
public SpelEvaluationException(int position, Throwable cause, SpelMessage message, Object... inserts)
SpelEvaluationExceptionback to summary
public SpelEvaluationException(Throwable cause, SpelMessage message, Object... inserts)

Method Detail

getInsertsback to summary
public Object[] getInserts()

Return the message inserts.

getMessageCodeback to summary
public SpelMessage getMessageCode()

Return the message code.

setPositionback to summary
public void setPosition(int position)

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