Patches item #437132, was opened at 2001-06-28 09:45 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376687&aid=437132&group_id=22866 Category: JBossServer Group: None Status: Open Resolution: None Priority: 5 Submitted By: Christian Riege (lqd) Assigned to: Nobody/Anonymous (nobody) Summary: Patch for custom finders Initial Comment: hi guys, When I declare a custom single-object finder method I *should* be able to throw an ObjectNotFoundException if the data store does not contain an object which matches my find criterias. However in the file jboss/src/main/org/jboss/ejb/plugins/jaws/bmp/CustomFindByEntitiesCommand.java if my method throws an exception it is caught and rethrown as a FinderException no matter what exception the method has thrown -- which is fine as long as I do not throw an ObjectNotFoundException. I suggest changing this behavior as per the attached patch. The patch checks if the exception thrown by the method is an instance of FinderException and if this is true, it just rethrows the exception. Otherwise the old behaviour applies which is to throw a new FinderException. (the patch file is vs. the current CVS HEAD) ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376687&aid=437132&group_id=22866 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development