I'm working with AMQP in C++ and rabbitmq and I'm having trouble handling errors when consuming messages. Here is the relevant part of my code:
When I run this code, I sometimes encounter library errors, but I'm not sure how to properly handle them. Should I throw an exception, close the connection and attempt a reconnect, or is there another recommended approach?
Any insights or examples would be greatly appreciated.
Thanks in advance!