diff --git a/src/main/java/org/springframework/retry/backoff/NonBlockingSleeper.java b/src/main/java/org/springframework/retry/backoff/NonBlockingSleeper.java index 5728cd58..a58a960a 100644 --- a/src/main/java/org/springframework/retry/backoff/NonBlockingSleeper.java +++ b/src/main/java/org/springframework/retry/backoff/NonBlockingSleeper.java @@ -34,7 +34,7 @@ public void sleep(long backOffPeriod) throws InterruptedException { try { TimeUnit.MILLISECONDS.sleep(backOffPeriod); } - catch (Exception e) { + catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new BackOffInterruptedException("Thread interrupted while sleeping", e); }