Class EvaluationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.binding.expression.EvaluationException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- PropertyNotFoundException,- ValueCoercionException
Indicates an expression evaluation failed.
- Author:
- Keith Donald
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionEvaluationException(Class<?> contextClass, String expressionString, String message) Creates a new evaluation exception.EvaluationException(Class<?> contextClass, String expressionString, String message, Throwable cause) Creates a new evaluation exception.
- 
Method SummaryModifier and TypeMethodDescriptionClass<?>The class of object upon which evaluation was attempted and failed.The string form of the expression that failed to evaluate against an instance of the the context class.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
EvaluationExceptionCreates a new evaluation exception.- Parameters:
- contextClass- the class of object upon which evaluation was attempted
- expressionString- the string form of the expression that failed to evaluate
- message- the exception message
 
- 
EvaluationExceptionpublic EvaluationException(Class<?> contextClass, String expressionString, String message, Throwable cause) Creates a new evaluation exception.- Parameters:
- contextClass- the class of object upon which evaluation was attempted
- expressionString- the string form of the expression that failed to evaluate
- message- the exception message
- cause- the underlying cause of this evaluation exception
 
 
- 
- 
Method Details- 
getContextClassThe class of object upon which evaluation was attempted and failed.- Returns:
- the context class
 
- 
getExpressionStringThe string form of the expression that failed to evaluate against an instance of the the context class.- Returns:
- the expression string
 
 
-