public class

SpelEvaluationException

extends EvaluationException
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

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class org.springframework.expression.ExpressionException
Public Constructors
SpelEvaluationException(SpelMessage message, Object... inserts)
SpelEvaluationException(int position, SpelMessage message, Object... inserts)
SpelEvaluationException(int position, Throwable cause, SpelMessage message, Object... inserts)
SpelEvaluationException(Throwable cause, SpelMessage message, Object... inserts)
Public Methods
Object[] getInserts()
String getMessage()
SpelMessage getMessageCode()
void setPosition(int position)
Set the position in the related expression which gave rise to this exception.
[Expand]
Inherited Methods
From class org.springframework.expression.ExpressionException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

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 Methods

public Object[] getInserts ()

Returns
  • the message inserts

public String getMessage ()

Returns
  • a formatted message with inserts applied

public SpelMessage getMessageCode ()

Returns
  • the message code

public void setPosition (int position)

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

Parameters
position the position in the expression that gave rise to the exception