tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
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
them.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message