On 06 Jan (14:09), Gavin King wrote: > Has this thread died? > > I still havn't got a really good feeling for what other people > think about this issue....
I think every distinct layer in a system should throw only one Exception type, possibly wrapping another Exception (this is called Exception Chaining, standard with JDK 1.4 now). So, wrapping an SQLException in a HibernateException is OK. > > I was thinking about wrapping SQLException in > > HibernateException, so that we don't need to worry about > > catch HibernateException and SQLException. Since now the work > > is focused on some changes for Hibernate 2, this could be the > > right time to do this kind of change. This would simplify the > > error handling in the applications. -- Christian Bauer [EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel