Global exception handlers handle any uncaught exception in an application. This allows you to follow best practices by allowing exceptions to bubble up and gives you a last-minute chance to do something with the exceptions, like log them. Additionally,
global exception handlers are a great way of programming defensively - they enable you to catch exceptions which you may have missed.
The Java programming language provides a built-in facility for defining a global exception handler. There are two steps involved in getting global exception handling rolling in your
Tomcat Hosting application.