Package org.springframework.expression
Class ExpressionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.expression.ExpressionException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- EvaluationException,- ParseException
Superclass for exceptions that can occur whilst processing expressions.
- Since:
- 3.0
- Author:
- Andy Clement, Phillip Webb
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected int
- 
Constructor SummaryConstructorsConstructorDescriptionExpressionException(int position, String message) Construct a new expression exception.ExpressionException(int position, String message, @Nullable Throwable cause) Construct a new expression exception.ExpressionException(@Nullable String expressionString, int position, String message) Construct a new expression exception.ExpressionException(@Nullable String expressionString, String message) Construct a new expression exception.ExpressionException(String message) Construct a new expression exception.ExpressionException(String message, @Nullable Throwable cause) Construct a new expression exception.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the expression string.Return the exception message.final intReturn the position in the expression string where the problem occurred.Return the exception simple message without including the expression that caused the failure.Return a detailed description of this exception, including the expression String and position (if available) as well as the actual exception message.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
expressionString
- 
positionprotected int position
 
- 
- 
Constructor Details- 
ExpressionExceptionConstruct a new expression exception.- Parameters:
- message- a descriptive message
 
- 
ExpressionExceptionConstruct a new expression exception.- Parameters:
- message- a descriptive message
- cause- the underlying cause of this exception
 
- 
ExpressionExceptionConstruct a new expression exception.- Parameters:
- expressionString- the expression string
- message- a descriptive message
 
- 
ExpressionExceptionConstruct a new expression exception.- Parameters:
- expressionString- the expression string
- position- the position in the expression string where the problem occurred
- message- a descriptive message
 
- 
ExpressionExceptionConstruct a new expression exception.- Parameters:
- position- the position in the expression string where the problem occurred
- message- a descriptive message
 
- 
ExpressionExceptionConstruct a new expression exception.- Parameters:
- position- the position in the expression string where the problem occurred
- message- a descriptive message
- cause- the underlying cause of this exception
 
 
- 
- 
Method Details- 
getExpressionStringReturn the expression string.
- 
getPositionpublic final int getPosition()Return the position in the expression string where the problem occurred.
- 
getMessageReturn the exception message. As of Spring 4.0, this method returns the same result astoDetailedString().- Overrides:
- getMessagein class- Throwable
- See Also:
 
- 
toDetailedStringReturn a detailed description of this exception, including the expression String and position (if available) as well as the actual exception message.
- 
getSimpleMessageReturn the exception simple message without including the expression that caused the failure.- Since:
- 4.0
 
 
-