| org.springframework.beans.BeansException org.springframework.beans.PropertyAccessException org.springframework.beans.TypeMismatchException
TypeMismatchException | public class TypeMismatchException extends PropertyAccessException (Code) | | Exception thrown on a type mismatch when trying to set a bean property.
author: Rod Johnson author: Juergen Hoeller |
Field Summary | |
final public static String | ERROR_CODE Error code that a type mismatch error will be registered with. |
ERROR_CODE | final public static String ERROR_CODE(Code) | | Error code that a type mismatch error will be registered with.
|
TypeMismatchException | public TypeMismatchException(PropertyChangeEvent propertyChangeEvent, Class requiredType)(Code) | | Create a new TypeMismatchException.
Parameters: propertyChangeEvent - the PropertyChangeEvent that resulted in the problem Parameters: requiredType - the required target type |
TypeMismatchException | public TypeMismatchException(PropertyChangeEvent propertyChangeEvent, Class requiredType, Throwable cause)(Code) | | Create a new TypeMismatchException.
Parameters: propertyChangeEvent - the PropertyChangeEvent that resulted in the problem Parameters: requiredType - the required target type (or null if not known) Parameters: cause - the root cause (may be null ) |
TypeMismatchException | public TypeMismatchException(Object value, Class requiredType)(Code) | | Create a new TypeMismatchException without PropertyChangeEvent.
Parameters: value - the offending value that couldn't be converted (may be null ) Parameters: requiredType - the required target type (or null if not known) |
TypeMismatchException | public TypeMismatchException(Object value, Class requiredType, Throwable cause)(Code) | | Create a new TypeMismatchException without PropertyChangeEvent.
Parameters: value - the offending value that couldn't be converted (may be null ) Parameters: requiredType - the required target type (or null if not known) Parameters: cause - the root cause (may be null ) |
getRequiredType | public Class getRequiredType()(Code) | | Return the required target type, if any.
|
getValue | public Object getValue()(Code) | | Return the offending value (may be null )
|
|
|