Best way to Handle Exception Globally in Node.js with Express 4?
<p>AS We have Exception filter in asp.net MVC, do we have similar kind of functionality in node.js with express 4 also?</p>

<p>I have tried following articles but didn't find the desired solution.</p>

<p><a href="http://www.nodewiz.biz/nodejs-error-handling-pattern/" rel="noreferrer">http://www.nodewiz.biz/nodejs-error-handling-pattern/</a></p>

<p>I have also tried below on app.js</p>

<pre><code>process.on('uncaughtException', function (err) {
  console.log(err);
})
</code></pre>

<p>ref article: <a href="http://shapeshed.com/uncaught-exceptions-in-node/" rel="noreferrer">http://shapeshed.com/uncaught-exceptions-in-node/</a></p>

<p>Any help would be appreciable.</p>