Class AmqpClientNackReceivedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.amqp.AmqpException
org.springframework.amqp.client.AmqpClientNackReceivedException
All Implemented Interfaces:
Serializable

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

    • AmqpClientNackReceivedException

      public AmqpClientNackReceivedException(String message, org.apache.qpid.protonj2.client.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.apache.qpid.protonj2.client.Message<?> getFailedMessage()
      Return the failed message.
      Returns:
      the message.