Class AmqpMessageReturnedException

  • All Implemented Interfaces:
    Serializable

    public class AmqpMessageReturnedException
    extends AmqpException
    Exception thrown if the request message cannot be delivered when the mandatory flag is set.
    Since:
    1.5
    Author:
    Gary Russell
    See Also:
    Serialized Form
    • Constructor Detail

      • AmqpMessageReturnedException

        @Deprecated
        public AmqpMessageReturnedException​(String message,
                                            Message returnedMessage,
                                            int replyCode,
                                            String replyText,
                                            String exchange,
                                            String routingKey)
        Deprecated.
      • AmqpMessageReturnedException

        public AmqpMessageReturnedException​(String message,
                                            ReturnedMessage returned)
    • Method Detail

      • getReturnedMessage

        public Message getReturnedMessage()
      • getReplyCode

        public int getReplyCode()
      • getReplyText

        public String getReplyText()
      • getExchange

        public String getExchange()
      • getRoutingKey

        public String getRoutingKey()