package org.springframework.beans;

import java.beans.PropertyChangeEvent;

/**
 * Exception thrown on a type mismatch when trying to set a property.
 * @author Rod Johnson
 * @version $Revision: 1.2 $
 */
public class TypeMismatchException extends PropertyAccessException {

	public TypeMismatchException(PropertyChangeEvent propertyChangeEvent, Class requiredType, Throwable t) {
		super("Failed to convert property value of type [" +
		      (propertyChangeEvent.getNewValue() != null ?
		       propertyChangeEvent.getNewValue().getClass().getName() : null) +
		      "] to required type [" + requiredType.getName() +
		      "] for property named '" + propertyChangeEvent.getPropertyName() + "'", propertyChangeEvent, t);
	}

}

@@ -195,9 +195,9 @@
 : 1.
-2
+3
  $%0A 
@@ -614,27 +614,78 @@
 Name() +
-%0A%09%09     
+ %22%5D%22 +%0A%09%09%09%09%09(propertyChangeEvent.getPropertyName() != null ?
  %22
-%5D
  for pro
@@ -744,18 +744,29 @@
 () + %22'%22
-,
  
+: %22%22),%0A%09%09%09%09%09
 property

check if property name is empty