Exception: Bunny::MessageNacked

Inherits:
Exception
  • Object
show all
Defined in:
lib/bunny/exceptions.rb

Overview

Raised when a published message is nacked by the broker and publisher confirm tracking is enabled.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, delivery_tag) ⇒ MessageNacked

Returns a new instance of MessageNacked.



221
222
223
224
# File 'lib/bunny/exceptions.rb', line 221

def initialize(message, delivery_tag)
  super(message)
  @delivery_tag = delivery_tag
end

Instance Attribute Details

#delivery_tagObject (readonly)



219
220
221
# File 'lib/bunny/exceptions.rb', line 219

def delivery_tag
  @delivery_tag
end