Skip to content

Add constructor to RetryableException for cases without retryAfter #2871

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rojae
Copy link

@rojae rojae commented Apr 27, 2025

Add. two new constructors to RetryableException:

  • A constructor without retryAfter and without cause
  • A constructor without retryAfter but with cause

Standardized JavaDoc across all RetryableException constructors

These new constructors remove overload ambiguity when retryAfter is not needed.

Add. a unit test to verify the new constructors.

  • canCreateRetryableExceptionWithoutRetryAfter
  • canCreateRetryableExceptionWithoutRetryAfterAndWithCause

Fixes #2458

@rojae rojae force-pushed the fix/2458-retryableexception-add-simple-constructor branch 2 times, most recently from 31d0395 to 752db82 Compare April 27, 2025 15:33
@rojae
Copy link
Author

rojae commented Apr 27, 2025

Force-pushed to simplify the commit history and correct unintended changes caused by formatting.

@velo velo enabled auto-merge (squash) May 5, 2025 13:31
auto-merge was automatically disabled May 7, 2025 18:50

Head branch was pushed to by a user without write access

- A constructor without retryAfter and without cause
- A constructor without retryAfter but with cause

Standardized JavaDoc across all RetryableException constructors

These new constructors remove overload ambiguity when retryAfter is not needed.

Add. a unit test to verify the new constructors.
- canCreateRetryableExceptionWithoutRetryAfter
- canCreateRetryableExceptionWithoutRetryAfterAndWithCause

Fixes OpenFeign#2458
@rojae rojae force-pushed the fix/2458-retryableexception-add-simple-constructor branch from 5423711 to 9c3bedf Compare May 7, 2025 19:07
@rojae
Copy link
Author

rojae commented May 7, 2025

Hi @velo

Thanks approved.

But build is failed due to the git-code-format-maven-plugin.
➡️ Build failure log

so I ran the formatting plugin locally and force-pushed the fix to simplify the commit history

git-code-format:format-code

➡️ Commit

Apologies for missing that - thank you!

@velo velo enabled auto-merge (squash) May 10, 2025 10:06
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.

Backward compatibility issue of overload resolution ambiguity
2 participants