celery/kombu — pull request #235 by ttddyy (2013-05-22 00:35:03+00:00)
Title: a callback function when Consumer.callbacks raises an exception

Added `on_callback_error` on Consumer. The registered function is invoked when one of the consumer callback functions have failed(throw exception). When True is returned from the function, it will continue the rest of consumer callback functions. Otherwise, stop and raise the originally thrown exception.

I think with this global error function, queue consumer applications can cleanly separate main logic and error handling logic.