Class AmqpNackReceivedException

  • All Implemented Interfaces:
    java.io.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 Summary

      Constructors 
      Constructor Description
      AmqpNackReceivedException​(java.lang.String message, Message failedMessage)
      Create an instance with the provided message and failed message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Message getFailedMessage()
      Return the failed message.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AmqpNackReceivedException

        public AmqpNackReceivedException​(java.lang.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.