Package org.springframework.expression
Class EvaluationException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.expression.ExpressionException
- org.springframework.expression.EvaluationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExpressionInvocationTargetException
,SpelEvaluationException
public class EvaluationException extends ExpressionException
Represent an exception that occurs during expression evaluation.- Since:
- 3.0
- Author:
- Andy Clement
- See Also:
- Serialized Form
Field Summary
Fields inherited from class org.springframework.expression.ExpressionException
expressionString, position
Constructor Summary
Constructors Constructor Description EvaluationException(int position, String message)
Create a new expression evaluation exception.EvaluationException(int position, String message, Throwable cause)
Create a new expression evaluation exception.EvaluationException(String message)
Create a new expression evaluation exception.EvaluationException(String expressionString, String message)
Create a new expression evaluation exception.EvaluationException(String message, Throwable cause)
Create a new expression evaluation exception.
Method Summary
Methods inherited from class org.springframework.expression.ExpressionException
getExpressionString, getMessage, getPosition, getSimpleMessage, toDetailedString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
EvaluationException
public EvaluationException(String message)
Create a new expression evaluation exception.- Parameters:
message
- description of the problem that occurred
EvaluationException
public EvaluationException(String message, Throwable cause)
Create a new expression evaluation exception.- Parameters:
message
- description of the problem that occurredcause
- the underlying cause of this exception
EvaluationException
public EvaluationException(int position, String message)
Create a new expression evaluation exception.- Parameters:
position
- the position in the expression where the problem occurredmessage
- description of the problem that occurred
EvaluationException
public EvaluationException(String expressionString, String message)
Create a new expression evaluation exception.- Parameters:
expressionString
- the expression that could not be evaluatedmessage
- description of the problem that occurred
EvaluationException
public EvaluationException(int position, String message, Throwable cause)
Create a new expression evaluation exception.- Parameters:
position
- the position in the expression where the problem occurredmessage
- description of the problem that occurredcause
- the underlying cause of this exception