commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Sutton <>
Subject RE: [HTTPCLIENT] different exception when reading response timed out
Date Thu, 08 May 2003 22:47:58 GMT
Hi Jen,
Hmmm, it seems you can't.  Generally, a HttpRecoverableException (as the
name suggests) means that a retry should work in theory whereas a plain
HttpException means that a retry will most likely fail.  Since HttpClient is
largely intended to remove the need to deal with the Http communication this
distinction is generally enough for people, it seems however it's not enough
for you.

Ideally I suppose the originating exception would be made available through
a getCause() type method to offer more flexibility and this wouldn't be too
difficult to add.  However, HttpClient is desperately trying to get 2.0 beta
1 out the door so I'll have to leave the decision on the exact timing of
this change (or perhaps the HttpClient developers will have an even better
solution).  I would strongly urge you to log a bug in bugzilla
( with this request and include as much
detail about your specific use case as possible.


Adrian Sutton, Software Engineer
Ephox Corporation 

-----Original Message-----
From: Jen []
Sent: Friday, 9 May 2003 4:53 AM
Subject: [HTTPCLIENT] different exception when reading response timed


I would like to catch the reading response timed out
exception (normally should be InterruptedIOException)
and deal it specially, but it looks like it is the
HttpRecoverableException, I am assuming it's pretty
general, how can I pick out the exception for timed
out? Thanks

Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

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

View raw message