noodlefrenzy / node-amqp10

amqp10 is a promise-based, AMQP 1.0 compliant node.js client
MIT License
134 stars 56 forks source link

Error management #327

Open BUONJG opened 7 years ago

BUONJG commented 7 years ago

Hello,

Could you please tell us how we can handles errors:

We tried to connect to an invalid amqp, the connect method never return neither throw an exception

When we remove network connection, accept, reject and release return but never throw exception neither

Thank you by advance.

mbroadst commented 7 years ago

@BUONJG there are examples in the usage section, and for the client itself you can listen to client:errorReceived which is sort of all oddly named for legacy reasons, until we can update it for a major version increment