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:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • getFailedMessage

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