From: <hib...@li...> - 2006-03-17 14:50:34
|
Author: max...@jb... Date: 2006-03-17 09:50:16 -0500 (Fri, 17 Mar 2006) New Revision: 9651 Modified: trunk/Hibernate3/src/org/hibernate/property/ChainedPropertyAccessor.java Log: correct property not fond exception Modified: trunk/Hibernate3/src/org/hibernate/property/ChainedPropertyAccessor.java =================================================================== --- trunk/Hibernate3/src/org/hibernate/property/ChainedPropertyAccessor.java 2006-03-17 14:50:00 UTC (rev 9650) +++ trunk/Hibernate3/src/org/hibernate/property/ChainedPropertyAccessor.java 2006-03-17 14:50:16 UTC (rev 9651) @@ -1,10 +1,5 @@ -/* - * Created on 28-Jan-2005 - * - */ package org.hibernate.property; -import org.hibernate.PropertyAccessException; import org.hibernate.PropertyNotFoundException; /** @@ -31,7 +26,7 @@ // ignore } } - throw new PropertyNotFoundException("Could not find Getter "); + throw new PropertyNotFoundException("Could not find getter for " + propertyName + " on " + theClass); } public Setter getSetter(Class theClass, String propertyName) @@ -46,7 +41,7 @@ // } } - throw new PropertyAccessException(null, "could not find a property " , false, theClass, propertyName); + throw new PropertyNotFoundException("Could not find setter for " + propertyName + " on " + theClass); } } |