mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
7484b9c491
In RetryTemplate, if we encounter an InterruptedException while sleeping for the configured back-off duration, we throw a RetryException with the InterruptedException as the cause. However, in contrast to the specification for RetryException, we do not currently include the exceptions for previous retry attempts as suppressed exceptions in the RetryException which is thrown in such scenarios. In order to comply with the documented contract for RetryException, this commit includes exceptions for previous attempts in the RetryException thrown for an InterruptedException as well. Closes gh-35434