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] Add optional exception types to retry on #5

Closed
spypunk opened this issue Mar 17, 2020 · 2 comments
Closed

[Feature request] Add optional exception types to retry on #5

spypunk opened this issue Mar 17, 2020 · 2 comments

Comments

@spypunk
Copy link

spypunk commented Mar 17, 2020

Hi,

It would be useful to be able to define on which exception types we want to retry on.

spypunk

@michaelbull
Copy link
Owner

The introduction section of the README has an example of this:

val retryTimeouts: RetryPolicy<Throwable> = {
    if (reason is SQLDataException) ContinueRetrying else StopRetrying
}

@spypunk
Copy link
Author

spypunk commented Mar 17, 2020

Great, thanks!

@spypunk spypunk closed this as completed Mar 17, 2020
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

No branches or pull requests

2 participants