Class NoSuchRequestHandlingMethodException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- javax.servlet.ServletException
- org.springframework.web.servlet.mvc.multiaction.NoSuchRequestHandlingMethodException
- All Implemented Interfaces:
Serializable
@Deprecated public class NoSuchRequestHandlingMethodException extends ServletException
Deprecated.as of 4.3, in favor of annotation-driven handler methodsException thrown when there is no handler method ("action" method) for a specific HTTP request.- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
MethodNameResolver.getHandlerMethodName(javax.servlet.http.HttpServletRequest)
, Serialized Form
Constructor Summary
Constructors Constructor Description NoSuchRequestHandlingMethodException(String methodName, Class<?> controllerClass)
Deprecated.Create a new NoSuchRequestHandlingMethodException for the given request.NoSuchRequestHandlingMethodException(String urlPath, String method, Map<String,String[]> parameterMap)
Deprecated.Create a new NoSuchRequestHandlingMethodException.NoSuchRequestHandlingMethodException(HttpServletRequest request)
Deprecated.Create a new NoSuchRequestHandlingMethodException for the given request.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getMethodName()
Deprecated.Return the name of the offending method, if known.Methods inherited from class javax.servlet.ServletException
getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
NoSuchRequestHandlingMethodException
public NoSuchRequestHandlingMethodException(HttpServletRequest request)
Deprecated.Create a new NoSuchRequestHandlingMethodException for the given request.- Parameters:
request
- the offending HTTP request
NoSuchRequestHandlingMethodException
public NoSuchRequestHandlingMethodException(String urlPath, String method, Map<String,String[]> parameterMap)
Deprecated.Create a new NoSuchRequestHandlingMethodException.- Parameters:
urlPath
- the request URI that has been used for handler lookupmethod
- the HTTP request method of the requestparameterMap
- the request's parameters as map
NoSuchRequestHandlingMethodException
public NoSuchRequestHandlingMethodException(String methodName, Class<?> controllerClass)
Deprecated.Create a new NoSuchRequestHandlingMethodException for the given request.- Parameters:
methodName
- the name of the handler method that wasn't foundcontrollerClass
- the class the handler method was expected to be in
Method Detail
getMethodName
public String getMethodName()
Deprecated.Return the name of the offending method, if known.