Class StrictExceptionHandler

    • Constructor Detail

      • StrictExceptionHandler

        public StrictExceptionHandler()
    • Method Detail

      • handleReturnListenerException

        public void handleReturnListenerException​(Channel channel,
                                                  java.lang.Throwable exception)
        Description copied from interface: ExceptionHandler
        Perform any required exception processing for the situation when the driver thread for the connection has called a ReturnListener's handleReturn method, and that method has thrown an exception.
        Specified by:
        handleReturnListenerException in interface ExceptionHandler
        Overrides:
        handleReturnListenerException in class ForgivingExceptionHandler
        Parameters:
        channel - the ChannelN that held the ReturnListener
        exception - the exception thrown by ReturnListener.handleReturn
      • handleConfirmListenerException

        public void handleConfirmListenerException​(Channel channel,
                                                   java.lang.Throwable exception)
        Description copied from interface: ExceptionHandler
        Perform any required exception processing for the situation when the driver thread for the connection has called a ConfirmListener's handleAck or handleNack method, and that method has thrown an exception.
        Specified by:
        handleConfirmListenerException in interface ExceptionHandler
        Overrides:
        handleConfirmListenerException in class ForgivingExceptionHandler
        Parameters:
        channel - the ChannelN that held the ConfirmListener
        exception - the exception thrown by ConfirmListener.handleAck
      • handleBlockedListenerException

        public void handleBlockedListenerException​(Connection connection,
                                                   java.lang.Throwable exception)
        Description copied from interface: ExceptionHandler
        Perform any required exception processing for the situation when the driver thread for the connection has called a BlockedListener's method, and that method has thrown an exception.
        Specified by:
        handleBlockedListenerException in interface ExceptionHandler
        Overrides:
        handleBlockedListenerException in class ForgivingExceptionHandler
        Parameters:
        connection - the Connection that held the BlockedListener
        exception - the exception thrown by the BlockedListener
      • handleConsumerException

        public void handleConsumerException​(Channel channel,
                                            java.lang.Throwable exception,
                                            Consumer consumer,
                                            java.lang.String consumerTag,
                                            java.lang.String methodName)
        Description copied from interface: ExceptionHandler
        Perform any required exception processing for the situation when the driver thread for the connection has called a method on a Consumer, and that method has thrown an exception.
        Specified by:
        handleConsumerException in interface ExceptionHandler
        Overrides:
        handleConsumerException in class ForgivingExceptionHandler
        Parameters:
        channel - the ChannelN that held the Consumer
        exception - the exception thrown by the Consumer
        consumer - the Consumer that caused the fault
        consumerTag - the Consumer's consumerTag
        methodName - the name of the method on the Consumer that threw the exception
      • handleChannelKiller

        protected void handleChannelKiller​(Channel channel,
                                           java.lang.Throwable exception,
                                           java.lang.String logMessage,
                                           java.lang.String closeMessage)