Hello Rich,
It depends on the library entirely. For example, the HTTP server
that ships with node will throw an exception if you don't have an
'error' event handler attached. If you are not catching the
'uncaughtException' on the process object, then it will crash node
(you should generally not catch that exception and continue running
the app unless you know what you are doing).
I would expect all libraries to use events with similar or the same
conventions, so I would *expect* the mysql library to not throw an
exception if you have an 'error' handler attached. Having said that, I
know for a fact that node_redis tries to reconnect on failure and even
buffers your commands for you. All these libraries need better
documentation as far as such behaviour is concerned.
Regards,
-Dhruv.