Exception: RabbitmqClient::MessagePublisher::ConfirmationFailed
- Inherits:
-
StandardError
- Object
- StandardError
- RabbitmqClient::MessagePublisher::ConfirmationFailed
- 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
-
#initialize(exchange, nacked, unconfirmed) ⇒ ConfirmationFailed
constructor
A new instance of ConfirmationFailed.
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 |