About Biju Kunjummen
There are broadly three ways of handling an exception flow using Spring MVC, the objective being to intercept any application exception and present a friendly and informative view back to the user.
1. Using error-page tag in web.xml file:
This is a servlet specs driven approach, where the exceptions that bubble up from the application are intercepted based on either the HTTP response code or the exception type and the handler for the exception is specified using the location sub-tag this way:
<error-page> <error-code>500</error-code> <location>/500</location></error-page><error-page> <exception-type>java.lang.Exception</exception-type> <location>/uncaughtException</location></error-page>
Source : http://www.javacodegeeks.com/2013/06/spring-mvc-error-handling-flow.html