[rabbitmq-discuss] How to catch RESOURCE_LOCKED exceptions in erlang client

Tim Watson tim at rabbitmq.com
Fri Aug 16 16:35:37 BST 2013


On 08/16/2013 04:31 PM, Geib, Mark wrote:
> That works, of course.
>
> I guess I was expecting that the reply would just be something containing the error, different from the #'queue.declare_ok'{} that I could match on.
>
>

No, the channel will be closed when the declare fails. I forgot to 
mention (in my code example) that you'll need to create a new channel at 
that point (if it fails).

Cheers,
Tim


More information about the rabbitmq-discuss mailing list