HttpIOExceptionHandler.handleIOException should include the originating exception

Open
#251 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
api, backend

Research direction

Locate HttpIOExceptionHandler.handleIOException(HttpRequest, boolean) and trace how the originating exception reaches the handler; then inspect nearby tests for the current behavior. Done means the handler can inspect the originating exception and the behavior is covered by tests.

Written by the indexing model from the issue text.

Description

type: feature request

From [email protected] on December 05, 2013 05:27:18

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: http://code.google.com/p/google-http-java-client/issues/detail?id=251

Dominant language
Java
Stars
1.4k
Forks
476
Avg merge
10h 47m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleapis/google-http-java-client

All issues in googleapis/google-http-java-client

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.