tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Bergsten <h...@gefionsoftware.com>
Subject Re: [PATCH + NEW FILE] eliminate some of the "throws Exception"usage
Date Wed, 19 Jan 2000 18:24:05 GMT
costin@costin.dnt.ro wrote:
> 
> Please wait a bit with this patch.
> - what about using TomcatException instead of ConnectorException ?
>  ( it will also be used by Interceptors, and probably other internal
> components). ( Servlet API doesn't define a new exception for
> every possible error case, and I don't think we should do that
> either. I wouldn't mind just using ServletException. )

TomcatException should be okay, but please don't use ServletException.
ServletException is defined as an exception thrown by servlets, period.
Throwing the same exception for internal container problems would be
very misleading.

Hans
-- 
Hans Bergsten		hans@gefionsoftware.com
Gefion Software		http://www.gefionsoftware.com

Mime
View raw message