class AMQP::Client::ReturnMessage

A published message returned by the broker due to some error

Attributes

body[RW]

The message body @return [String]

exchange[R]

Name of the exchange the message was published to @return [String]

properties[RW]

Message properties @return [Properties]

reply_code[R]

Error code @return [Integer]

reply_text[R]

Description on why the message was returned @return [String]

routing_key[R]

The routing key the message was published with @return [String]

Public Class Methods

new(reply_code, reply_text, exchange, routing_key) click to toggle source

@api private

# File lib/amqp/client/message.rb, line 77
def initialize(reply_code, reply_text, exchange, routing_key)
  @reply_code = reply_code
  @reply_text = reply_text
  @exchange = exchange
  @routing_key = routing_key
  @properties = nil
  @body = ""
end