commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elwin, Martin" <mel...@rsasecurity.com>
Subject RE: [HttpClient] [PATCH] HttpMultiClient Catches IOException Twic e
Date Mon, 23 Sep 2002 07:13:27 GMT
> From: Adrian Sutton [mailto:adrian.sutton@ephox.com] 
> In HttpMultiClient (latest version in CVS) there is a catch 
> statement for
> IOException followed by HttpException, however since 
> HttpException extends
> from IOException there is no possible way the HttpException 
> catch clause can
> be activated.

Seems like a problem introduced when changing the super class of
HttpException from Exception to URIException (which inherits IOException).
>From the source of HttpException:

"Why is it from URIException?
 To simplify the programming style for the inherited exception instances."

Not sure if I'm totally convinced, though.

Anyone care to motivate why this is a Good Thing?

Kindly,

/Martin



--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message