Node.js Best Practice Exception Handling
问题 I just started trying out node.js a few days ago. I\'ve realized that the Node is terminated whenever I have an unhandled exception in my program. This is different than the normal server container that I have been exposed to where only the Worker Thread dies when unhandled exceptions occur and the container would still be able to receive the request. This raises a few questions: Is process.on(\'uncaughtException\') the only effective way to guard against it? Will process.on(\