Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve bunny exceptions handling #137
Quite recently I was using Hutch to publish some messages to RabbitMQ and I stopped the RabbitMQ server during that process (on purpose, for test purposes).
My application ended up getting the following exception:
Bunny::ConnectionForced (Connection-level error: CONNECTION_FORCED - broker forced connection closure with reason 'shutdown')
My publisher implementation already handles
I was wondering if
@michaelklishin and @hutch-community : What's your thoughts on it?
I find it unfortunate that Hutch had to re-invent pretty much the same exceptions but since it already has an exception for publishing errors, we can do that.
The exception you are seeing is not thrown on publish, though. It is RabbitMQ closing connection because it is shutting down.