Tuesday 19 March 2019

Should you handle uncaughtException in server applications?

If you have an error in anything that's called from a route (e.g. koa or express), your error route middleware will catch and handle it. And if you have an error anywhere else, it should be thrown at initialization time right?Will uncaughtException event ever occur in server applications once the server has already started up successfully? What's an example where this could occur?So do we need an uncaughtException callback and if so what should we do in it?

Submitted March 19, 2019 at 06:37PM by nowboarding

No comments:

Post a Comment