@@ -0,0 +1,621 @@
+package ems.controller;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0A%0Aimport org.apache.commons.logging.Log;%0Aimport org.apache.commons.logging.LogFactory;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.ExceptionHandler;%0A%0A@Controller%0Apublic class ExceptionController %7B%0A    private Log logger = LogFactory.getLog( getClass() );%0A    %0A    @ExceptionHandler(value = Exception.class)%0A    public String handleError(HttpServletRequest req, Exception exception) %7B%0A        logger.error( %22Request:%22 + req.getRequestURL() + %22 raised %22 + exception);%0A        return %22error%22;%0A    %7D%0A%7D%0A

Add Exception Controller