public class

SpelParseException

extends ParseException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.expression.ExpressionException
           ↳ org.springframework.expression.ParseException
             ↳ org.springframework.expression.spel.SpelParseException

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
SpelParseException(String expressionString, int position, SpelMessage message, Object... inserts)
SpelParseException(int position, SpelMessage message, Object... inserts)
SpelParseException(int position, Throwable cause, SpelMessage message, Object... inserts)
Public Methods
Object[] getInserts()
String getMessage()
SpelMessage getMessageCode()
[Expand]
Inherited Methods
From class org.springframework.expression.ExpressionException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public SpelParseException (String expressionString, int position, SpelMessage message, Object... inserts)

public SpelParseException (int position, SpelMessage message, Object... inserts)

public SpelParseException (int position, 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