Skip to content

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

@zimarrio

Description

@zimarrio

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions