From 115a1b99f45651ec2f0ddddd3809cdde0cd27d7d Mon Sep 17 00:00:00 2001 From: Jan Dusil <134381434+jandusil@users.noreply.github.com> Date: Fri, 31 May 2024 06:58:35 +0200 Subject: [PATCH] Fix #839: Throwable and Error should not be caught (#840) * Fix #839: Throwable and Error should not be caught --- .../io/getlime/push/service/PushMessageSenderService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powerauth-push-server/src/main/java/io/getlime/push/service/PushMessageSenderService.java b/powerauth-push-server/src/main/java/io/getlime/push/service/PushMessageSenderService.java index 3b93e5319..bb3cca164 100644 --- a/powerauth-push-server/src/main/java/io/getlime/push/service/PushMessageSenderService.java +++ b/powerauth-push-server/src/main/java/io/getlime/push/service/PushMessageSenderService.java @@ -182,8 +182,8 @@ private PushSendingCallback createPushSendingCallback(final Mode mode, final Pus } } platformResult.setTotal(platformResult.getTotal() + 1); - } catch (Throwable t) { - logger.error("System error when sending notification: {}", t.getMessage(), t); + } catch (Exception e) { + logger.error("System error when sending notification: {}", e.getMessage(), e); } finally { arriveAndDeregisterPhaserForMode(phaser, mode); }