| Constructor: |
public TypeMismatchException(PropertyChangeEvent propertyChangeEvent,
Class requiredType) {
this(propertyChangeEvent, requiredType, null);
}
Create a new TypeMismatchException. Parameters:
propertyChangeEvent - the PropertyChangeEvent that resulted in the problem
requiredType - the required target type
|
public TypeMismatchException(Object value,
Class requiredType) {
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)
|
public TypeMismatchException(PropertyChangeEvent propertyChangeEvent,
Class requiredType,
Throwable cause) {
super(propertyChangeEvent,
"Failed to convert property value of type [" +
(propertyChangeEvent.getNewValue() != null ?
ClassUtils.getQualifiedName(propertyChangeEvent.getNewValue().getClass()) : null) + "]" +
(requiredType != null ?
" to required type [" + ClassUtils.getQualifiedName(requiredType) + "]" : "") +
(propertyChangeEvent.getPropertyName() != null ?
" for property '" + propertyChangeEvent.getPropertyName() + "'" : ""),
cause);
this.value = propertyChangeEvent.getNewValue();
this.requiredType = requiredType;
}
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) {
super("Failed to convert value of type [" +
(value != null ?
ClassUtils.getQualifiedName(value.getClass()) : null) + "]" +
(requiredType != null ?
" to required type [" + ClassUtils.getQualifiedName(requiredType) + "]" : ""),
cause);
this.value = value;
this.requiredType = 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)
cause - the root cause (may be null)
|