Class AmqpNackReceivedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.amqp.AmqpException
org.springframework.amqp.rabbit.core.AmqpNackReceivedException
All Implemented Interfaces:
Serializable

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

    • AmqpNackReceivedException

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

    • getFailedMessage

      public org.springframework.amqp.core.Message getFailedMessage()
      Return the failed message.
      Returns:
      the message.