>> ...and...from what I've learned about RuntimeExceptions, you shouldn't
>> really catch them anyway. If you're getting a RuntimeException you
[quoted text clipped - 10 lines]
> Another thing are Errors. They are not worth of catching because you
> can't do anything useful in case of an Error.
Unless, of course, the people at Hibernate decide to change
HibernateException so that it no longer subclasses (Runtime)Exception, but
Error instead. In which case, you should catch that error, as there *is*
something useful you can do with it.
In other words, forget the dogma. Catch an throwable if it makes sense
to do so, and don't catch it if it doesn't make sense to do so.
- Oliver
Jason Cavett - 05 Apr 2007 17:50 GMT
> >> ...and...from what I've learned about RuntimeExceptions, you shouldn't
> >> really catch them anyway. If you're getting a RuntimeException you
[quoted text clipped - 22 lines]
>
> - Show quoted text -
Good advice. Thanks.