tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Catching throwable.
Date Wed, 15 Sep 2010 19:57:43 GMT
On 11/09/2010 00:45, Wesley Acheson wrote:
> I'm looking through the source now where I'm seeing a lot of
> Throwables caught. I was always told this was bad practice is there a
> reason for this? Some I could understand but there seems to be places
> where throwable is caught even though the javadocs say it throws an
> exception. And by your handling of the throwable it looks like you
> know what to expect the throwable to be.
> Just getting my head arround it.

Usually as a short-cut. Sometimes it is reasonable, sometimes not. I
thought we had caught all the ones that mattered in a bug fix a few
months ago. There may be some left. ExceptionUtils is the way to handle


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message