users@glassfish.java.net

Re: Frustrating and Confusing Exceptions

From: <glassfish_at_javadesktop.org>
Date: Thu, 29 Jan 2009 08:07:58 PST

Hi,

Thanks for the advice. It looks to me that hibernate is wrapping some of the database errors in custom exceptions instead of the ones in the jpa specification. It is very hard to track down. It seems that I might have to catch all ejbexceptions but it does not seem like a very good idea. Possibly I have to come up with a different design which can avoid exceptions entirely.
[Message sent by forum member 'woel' (woel)]

http://forums.java.net/jive/thread.jspa?messageID=328982