use of org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod in project spring-mvc-31-demo by rstoyanchev.
the class ExtendedExceptionHandlerExceptionResolver method getExceptionHandlerMethod.
@Override
protected ServletInvocableHandlerMethod getExceptionHandlerMethod(HandlerMethod handlerMethod, Exception exception) {
ServletInvocableHandlerMethod result = super.getExceptionHandlerMethod(handlerMethod, exception);
if (result != null) {
return result;
}
Method method = this.methodResolver.resolveMethod(exception);
return (method != null) ? new ServletInvocableHandlerMethod(this.handler, method) : null;
}
Aggregations