Sunday, 10 July 2016

nodejs, stop program crash, catch all unhandled exception, uncaught exception,




process.on('uncaughtException', function(err) {
  console.log('Caught exception: ' + err);
});
http://stackoverflow.com/questions/19909904/how-to-handle-all-exceptions-in-node-js


No comments:

Post a comment