Exception: BugBunny::CommunicationError
- Defined in:
- lib/bug_bunny/exception.rb
Overview
Error lanzado cuando ocurren problemas de red, conexión o protocolo AMQP con RabbitMQ.
Envuelve cualquier Bunny::Exception (TCP fail, auth fail, canal cerrado,
PreconditionFailed, ConnectionClosedError, etc.) en las fronteras de
abstracción del gem — BugBunny.create_connection, BugBunny::Client#publish /
#request / #send, y BugBunny::Producer#confirmed. Los callers no deberían
rescatar tipos de Bunny::* directamente: con rescue BugBunny::CommunicationError
alcanza para cubrir cualquier fallo de transporte/broker.
La excepción original queda accesible vía .cause (Ruby la preserva
automáticamente al re-raisear dentro del rescue).