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

[Feature Request]: Default behaviour when no exception is specified #154

Open
zimarrio opened this issue Nov 7, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@zimarrio
Copy link

zimarrio commented Nov 7, 2024

Is your request related to a problem you have?

I had configured retry forever without specifying the exceptions it should handle and was expecting it to handle all exceptions. However, the default behaviour is to handle no exception.
.RetryForever(x => x.WithTimeBetweenTriesPlan(TimeSpan.FromSeconds(10)))

Describe the solution you'd like

I see two options to use when no exception is defined:

  1. The default behaviour should be to handle any exception. If specified, it would handle just the specified types.
  2. The application should throw an error on startup and suggest to add .HandleAnyException() or specific exceptions.

Are you able to help bring it to life and contribute with a Pull Request?

No

Additional context

No response

@zimarrio zimarrio added the enhancement New feature or request label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant