Class ManualAckListenerExecutionFailedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.amqp.AmqpException
org.springframework.amqp.rabbit.support.ListenerExecutionFailedException
org.springframework.integration.amqp.support.ManualAckListenerExecutionFailedException
All Implemented Interfaces:
java.io.Serializable

public class ManualAckListenerExecutionFailedException
extends org.springframework.amqp.rabbit.support.ListenerExecutionFailedException
A ListenerExecutionFailedException enhanced with the channel and delivery tag. Used for conversion errors when using manual acks.
Since:
5.1.3
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    ManualAckListenerExecutionFailedException​(java.lang.String msg, java.lang.Throwable cause, com.rabbitmq.client.Channel channel, long deliveryTag, org.springframework.amqp.core.Message... failedMessages)
    Construct an instance with the provided properties.
    ManualAckListenerExecutionFailedException​(java.lang.String msg, java.lang.Throwable cause, org.springframework.amqp.core.Message failedMessage, com.rabbitmq.client.Channel channel, long deliveryTag)
  • Method Summary

    Modifier and Type Method Description
    com.rabbitmq.client.Channel getChannel()
    Return the channel.
    long getDeliveryTag()
    Return the delivery tag for the last failed message.

    Methods inherited from class org.springframework.amqp.rabbit.support.ListenerExecutionFailedException

    getFailedMessage, getFailedMessages

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ManualAckListenerExecutionFailedException

      @Deprecated public ManualAckListenerExecutionFailedException​(java.lang.String msg, java.lang.Throwable cause, org.springframework.amqp.core.Message failedMessage, com.rabbitmq.client.Channel channel, long deliveryTag)
      Construct an instance with the provided properties.
      Parameters:
      msg - the exception message.
      cause - the cause.
      failedMessage - the failed message.
      channel - the channel.
      deliveryTag - the delivery tag for the message.
    • ManualAckListenerExecutionFailedException

      public ManualAckListenerExecutionFailedException​(java.lang.String msg, java.lang.Throwable cause, com.rabbitmq.client.Channel channel, long deliveryTag, org.springframework.amqp.core.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.