public final class EndpointUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static ListenerExecutionFailedException |
errorMessagePayload(Message message,
com.rabbitmq.client.Channel channel,
boolean isManualAck,
Exception e)
Return an
ListenerExecutionFailedException or a ManualAckListenerExecutionFailedException
depending on whether isManualAck is false or true. |
public static ListenerExecutionFailedException errorMessagePayload(Message message, com.rabbitmq.client.Channel channel, boolean isManualAck, Exception e)
ListenerExecutionFailedException or a ManualAckListenerExecutionFailedException
depending on whether isManualAck is false or true.message - the failed message.channel - the channel.isManualAck - true if the container uses manual acknowledgment.e - the exception.