Exception: RabbitmqClient::MessagePublisher::ConfirmationFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rabbitmq_client/message_publisher.rb

Overview

Custom error is thrown when rabbitmq do not confirm publishing an event

Instance Method Summary collapse

Constructor Details

#initialize(exchange, nacked, unconfirmed) ⇒ ConfirmationFailed

Returns a new instance of ConfirmationFailed.



8
9
10
11
12
# File 'lib/rabbitmq_client/message_publisher.rb', line 8

def initialize(exchange, nacked, unconfirmed)
  msg = 'Message confirmation on the exchange ' \
        "#{exchange} has failed (#{nacked}/#{unconfirmed})."
  super(msg)
end