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:
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
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ManualAckListenerExecutionFailedException(String msg, Throwable cause, com.rabbitmq.client.Channel channel, long deliveryTag, Message... failedMessages)Construct an instance with the provided properties.ManualAckListenerExecutionFailedException(String msg, Throwable cause, Message failedMessage, com.rabbitmq.client.Channel channel, long deliveryTag)Deprecated. -
Method Summary
Modifier and Type Method Description com.rabbitmq.client.ChannelgetChannel()Return the channel.longgetDeliveryTag()Return the delivery tag for the last failed message.Methods inherited from class org.springframework.amqp.rabbit.support.ListenerExecutionFailedException
getFailedMessage, getFailedMessagesMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ManualAckListenerExecutionFailedException
@Deprecated public ManualAckListenerExecutionFailedException(String msg, Throwable cause, Message failedMessage, com.rabbitmq.client.Channel channel, long deliveryTag)Deprecated.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(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.
-