Retry on any exception except excluded ones
See original GitHub issueHi,
it will be nice to have a method like:
retryOnAnyExceptionExcluding(Class<? extends Exception>... exceptions)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Trying to exclude an exception using @Retryable
I will try adding a blanket @Recover method. So I put in a catch-all @Recover method and the exception it is getting is...
Read more >Configuring exceptions to exclude from retry (using annotations)
In this post, I will show with example how to mention the exceptions through annotation, that when thrown by a annotated operation, Spring...
Read more >Retryable won't work as expected with exclude #74 - GitHub
My interpretation is that only when both exclude and include are missing it retries all exceptions. But this is not clearly document and...
Read more >Exception Handling and Retries - Amazon Neptune
When transactions are canceled because of unresolvable conflicts or lock-wait timeouts, Amazon Neptune responds with a ConcurrentModificationException .
Read more >Skip-Record, Retry-Step - IBM
Now the two exclude exceptions will not be considered for skipping, but all others will. The include.exception property is mutually exclusive of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Couple of issues here.
This code is throwing
UnexpectedException
but it should retry.UnexpectedException
should be thrown ifRuntimeException
is thrown from callable.Now this code:
should not retry on
IllegalStateException
because it extends fromRuntimeException
.Thanks for fast issue solving 😃 I’ll check that out soon.