diff --git a/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/reporting/notification/core/DefaultNotificationEventConsumer.kt b/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/reporting/notification/core/DefaultNotificationEventConsumer.kt index 7185e64..de76449 100644 --- a/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/reporting/notification/core/DefaultNotificationEventConsumer.kt +++ b/application/aam-backend-service/src/main/kotlin/com/aamdigital/aambackendservice/reporting/notification/core/DefaultNotificationEventConsumer.kt @@ -36,7 +36,7 @@ class DefaultNotificationEventConsumer( logger.debug("Payload parsed: {}", payload) try { useCase.trigger(payload) - } catch (ex: AamException) { + } catch (ex: Exception) { throw AmqpRejectAndDontRequeueException( "[USECASE_ERROR] ${ex.localizedMessage}", ex