@FunctionalInterface public interface RabbitListenerErrorHandler
| Modifier and Type | Method and Description |
|---|---|
Object |
handleError(Message amqpMessage,
Message<?> message,
ListenerExecutionFailedException exception)
Handle the error.
|
Object handleError(Message amqpMessage, Message<?> message, ListenerExecutionFailedException exception) throws Exception
replyTo/@SendTo semantics.amqpMessage - the raw message received.message - the converted spring-messaging message.exception - the exception the listener threw, wrapped in a
ListenerExecutionFailedException.Exception - an exception which may be the original or different.