package org.springframework.beans;
Exception thrown on a type mismatch when trying to set a bean property.
- Author(s):
- Rod Johnson
- Juergen Hoeller
Error code that a type mismatch error will be registered with.
Create a new TypeMismatchException.
- Parameters:
propertyChangeEvent the PropertyChangeEvent that resulted in the problemrequiredType the required target type
this(propertyChangeEvent, requiredType, null);
Create a new TypeMismatchException.
- Parameters:
propertyChangeEvent the PropertyChangeEvent that resulted in the problemrequiredType the required target type (or null if not known)cause the root cause (may be null)
super(propertyChangeEvent,
"Failed to convert property value of type [" +
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)
this(value, requiredType, null);
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)
(requiredType != null ? " to required type [" + ClassUtils.getQualifiedName(requiredType) + "]" : ""),
Return the offending value (may be
null)
Return the required target type, if any.