Save This Page
Home » spring-framework-2.5.4 » org.springframework » beans » [javadoc | source]
org.springframework.beans
public class: TypeMismatchException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            org.springframework.core.NestedRuntimeException
               org.springframework.beans.BeansException
                  org.springframework.beans.PropertyAccessException
                     org.springframework.beans.TypeMismatchException

All Implemented Interfaces:
    ErrorCoded, Serializable

Exception thrown on a type mismatch when trying to set a bean property.
Field Summary
public static final  String ERROR_CODE    Error code that a type mismatch error will be registered with. 
Constructor:
 public TypeMismatchException(PropertyChangeEvent propertyChangeEvent,
    Class requiredType) 
    Create a new TypeMismatchException.
    Parameters:
    propertyChangeEvent - the PropertyChangeEvent that resulted in the problem
    requiredType - the required target type
 public TypeMismatchException(Object value,
    Class requiredType) 
    Create a new TypeMismatchException without PropertyChangeEvent.
    Parameters:
    value - the offending value that couldn't be converted (may be null)
    requiredType - the required target type (or null if not known)
 public TypeMismatchException(PropertyChangeEvent propertyChangeEvent,
    Class requiredType,
    Throwable cause) 
    Create a new TypeMismatchException.
    Parameters:
    propertyChangeEvent - the PropertyChangeEvent that resulted in the problem
    requiredType - the required target type (or null if not known)
    cause - the root cause (may be null)
 public TypeMismatchException(Object value,
    Class requiredType,
    Throwable cause) 
    Create a new TypeMismatchException without PropertyChangeEvent.
    Parameters:
    value - the offending value that couldn't be converted (may be null)
    requiredType - the required target type (or null if not known)
    cause - the root cause (may be null)
Method from org.springframework.beans.TypeMismatchException Summary:
getErrorCode,   getRequiredType,   getValue
Methods from org.springframework.beans.PropertyAccessException:
getPropertyChangeEvent
Methods from org.springframework.core.NestedRuntimeException:
contains,   getMessage,   getMostSpecificCause,   getRootCause
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.TypeMismatchException Detail:
 public String getErrorCode() 
 public Class getRequiredType() 
    Return the required target type, if any.
 public Object getValue() 
    Return the offending value (may be null)