Class AmqpNackReceivedException

All Implemented Interfaces:
Serializable

public class AmqpNackReceivedException extends AmqpException
An exception thrown when a negative acknowledgement received after publishing a message.
Since:
2.3.3
Author:
Gary Russell
See Also:
  • Constructor Details

    • AmqpNackReceivedException

      public AmqpNackReceivedException(String message, Message failedMessage)
      Create an instance with the provided message and failed message.
      Parameters:
      message - the message.
      failedMessage - the failed message.
  • Method Details

    • getFailedMessage

      public Message getFailedMessage()
      Return the failed message.
      Returns:
      the message.