@Override
protected ModelAndView doResolveException(HttpServletRequest request, HttpServletResponse response, Object handler,
Exception exception) {
ModelAndView modelAndView = null;
ServletWebRequest webRequest = null;
ApiError error = null;
try {
webRequest = new ServletWebRequest(request, response);
if (exception instanceof BusinessException) {
error = handleException((BusinessException)exception);
} else if (exception instanceof BadRequestException) {
error = handleException((BadRequestException)exception);