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 1 commit 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 from 0cbcadc to 31d0395 Compare April 27, 2025 15:19
Added 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.

Added 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 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.

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
1 participant