1 16 17 package org.springframework.web.servlet.mvc.multiaction; 18 19 import javax.servlet.ServletException ; 20 import javax.servlet.http.HttpServletRequest ; 21 22 28 public class NoSuchRequestHandlingMethodException extends ServletException { 29 30 private String methodName; 31 32 33 37 public NoSuchRequestHandlingMethodException(HttpServletRequest request) { 38 super("No handling method can be found for request [" + request + "]"); 39 } 40 41 46 public NoSuchRequestHandlingMethodException(String methodName, Class controllerClass) { 47 super("No request handling method with name '" + methodName + 48 "' in class [" + controllerClass.getName() + "]"); 49 this.methodName = methodName; 50 } 51 52 53 56 public String getMethodName() { 57 return methodName; 58 } 59 60 } 61 | Popular Tags |