rlalfo / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

HttpIOExceptionHandler.handleIOException should include the originating exception #251

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

N/A

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

HttpIOExceptionHandler.handleIOException(HttpRequest, boolean) doesn't allow 
inspection of the originating exception. In certain scenarios it might be 
useful to do this.

e.g. I'm using an HttpIOExceptionHandler to force a retry in the case of this 
bug on Android: 
https://code.google.com/p/google-http-java-client/issues/detail?id=213
However, since I can't tell the type of exception thrown I'm having to retry 
regardless of the particular type of error.

Original issue reported on code.google.com by chris.va...@laterooms.com on 5 Dec 2013 at 1:27