Search in sources :

Example 1 with ServletInvocableHandlerMethod

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;
}
Also used : ServletInvocableHandlerMethod(org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod) HandlerMethod(org.springframework.web.method.HandlerMethod) ServletInvocableHandlerMethod(org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod) Method(java.lang.reflect.Method)

Aggregations

Method (java.lang.reflect.Method)1 HandlerMethod (org.springframework.web.method.HandlerMethod)1 ServletInvocableHandlerMethod (org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod)1