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