Avoid throws Exception where possible - Phase I
* Polishing - PR Comments
This commit is contained in:
committed by
Artem Bilan
parent
005bc80680
commit
b187bca36e
@@ -327,6 +327,8 @@ When `true`, it traverses exception causes until it finds a match or runs out of
|
||||
To use this classifier for retry, use a `SimpleRetryPolicy` created with the constructor that takes the max attempts, the `Map` of `Exception` objects, and the `traverseCauses` boolean.
|
||||
Then you can inject this policy into the `RetryTemplate`.
|
||||
|
||||
IMPORTANT: `traverseCauses` is required in this case because user exceptions may be wrapped in a `MessagingException`.
|
||||
|
||||
[[circuit-breaker-advice]]
|
||||
===== Circuit Breaker Advice
|
||||
|
||||
|
||||
Reference in New Issue
Block a user