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
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 Summary
ConstructorDescriptionManualAckListenerExecutionFailedException
(String msg, Throwable cause, com.rabbitmq.client.Channel channel, long deliveryTag, Message... failedMessages) Construct an instance with the provided properties. -
Method Summary
Modifier and TypeMethodDescriptioncom.rabbitmq.client.Channel
Return the channel.long
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
-
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.
-