org.springframework.binding.expression
Class EvaluationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.binding.expression.EvaluationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PropertyNotFoundException, ValueCoercionException

public class EvaluationException
extends RuntimeException

Indicates an expression evaluation failed.

Author:
Keith Donald
See Also:
Serialized Form

Constructor Summary
EvaluationException(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 Summary
 Class getContextClass()
          The class of object upon which evaluation was attempted and failed.
 String getExpressionString()
          The string form of the expression that failed to evaluate against an instance of the the context class.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EvaluationException

public EvaluationException(Class contextClass,
                           String expressionString,
                           String message)
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

EvaluationException

public 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 Detail

getContextClass

public Class getContextClass()
The class of object upon which evaluation was attempted and failed.

Returns:
the context class

getExpressionString

public String getExpressionString()
The string form of the expression that failed to evaluate against an instance of the the context class.

Returns:
the expression string