Interface MessageBusExceptionHandler

    • Method Detail

      • shouldDeliveryChannelErrorBeHandledAndDeliveryAborted

        boolean shouldDeliveryChannelErrorBeHandledAndDeliveryAborted​(ProcessingContext<Object> message,
                                                                      Exception e,
                                                                      Channel<Object> channel)
        In some cases, an Exception during the delivery to a Subscriber should be ignored, so that the delivery is not stopped. Therefore for each exception during the delivery this method is invoked. If true is returned, the delivery stopped, the MessageBusExceptionHandler.handleDeliveryChannelException method is invoked and the message is marked as failed in ChannelStatistics. If false is returned, the exception is ignored and the delivery continues.
        Parameters:
        message - the message for which the Exception was thrown
        e - the raised Exception
        channel - the EventType specific channel, in which the message was delivered
        Returns:
        true if the exception should be handled, false otherwise
      • handleFilterException

        void handleFilterException​(ProcessingContext<Object> message,
                                   Exception e,
                                   Channel<Object> channel)
        When a Exception inside a Filter is thrown, this method is invoked.
        Parameters:
        message - the message that caused the Exception
        e - the raised Exception
        channel - the accepting Channel