Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a constructor for the RetryableException to include a Response… #2123

Merged
merged 2 commits into from
Jul 16, 2023

Conversation

FloLei
Copy link
Contributor

@FloLei FloLei commented Jul 9, 2023

I have a use case where I use a custom error decoder in a middleware Spring Boot application that processes the last RetryableException in an ExceptionHandler after the retries of a client call have run. But right now I can only access the response body and headers of a failed call with a workaround in the exception handler.
Therefore the extension of the constructor of the RetryableException so that the response body and header can be set in the FeignException and the possibility to access the content without a workaround.

@velo velo merged commit 9f6ccaa into OpenFeign:master Jul 16, 2023
1 check passed
velo pushed a commit that referenced this pull request Oct 7, 2024
#2123)

* Adding a constructor for the RetryableException to include a Response Body and Response Header parameter

* formatting test
velo pushed a commit that referenced this pull request Oct 8, 2024
#2123)

* Adding a constructor for the RetryableException to include a Response Body and Response Header parameter

* formatting test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants