Class ManualAckListenerExecutionFailedException

All Implemented Interfaces:
Serializable

public class ManualAckListenerExecutionFailedException extends ListenerExecutionFailedException
A ListenerExecutionFailedException enhanced with the channel and delivery tag. Used for conversion errors when using manual acks.
Since:
5.1.3
Author:
Gary Russell, Artem Bilan
See Also:
  • Constructor Details

    • ManualAckListenerExecutionFailedException

      public ManualAckListenerExecutionFailedException(String msg, Throwable cause, com.rabbitmq.client.Channel channel, long deliveryTag, Message... failedMessages)
      Construct an instance with the provided properties.
      Parameters:
      msg - the exception message.
      cause - the cause.
      channel - the channel.
      deliveryTag - the delivery tag for the last message.
      failedMessages - the failed message(s).
      Since:
      5.3
  • Method Details

    • getChannel

      public com.rabbitmq.client.Channel getChannel()
      Return the channel.
      Returns:
      the channel.
    • getDeliveryTag

      public long getDeliveryTag()
      Return the delivery tag for the last failed message.
      Returns:
      the tag.