Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve bunny exceptions handling #137

Closed
lostie opened this issue Mar 6, 2015 · 1 comment
Closed

Improve bunny exceptions handling #137

lostie opened this issue Mar 6, 2015 · 1 comment

Comments

@lostie
Copy link

lostie commented Mar 6, 2015

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 Hutch exceptions

I was wondering if Hutch should be handling Bunny exceptions so that whoever is using Hutch does not need to know that Hutch is using Bunny under the hood.

@michaelklishin and @hutch-community : What's your thoughts on it?

@michaelklishin
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants