public class NoSuchRequestHandlingMethodException
extends javax.servlet.ServletException
MethodNameResolver.getHandlerMethodName(javax.servlet.http.HttpServletRequest)
,
Serialized FormConstructor and Description |
---|
NoSuchRequestHandlingMethodException(javax.servlet.http.HttpServletRequest request)
Create a new NoSuchRequestHandlingMethodException for the given request.
|
NoSuchRequestHandlingMethodException(String methodName,
Class controllerClass)
Create a new NoSuchRequestHandlingMethodException for the given request.
|
NoSuchRequestHandlingMethodException(String urlPath,
String method,
Map parameterMap)
Create a new NoSuchRequestHandlingMethodException.
|
Modifier and Type | Method and Description |
---|---|
String |
getMethodName()
Return the name of the offending method, if known.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NoSuchRequestHandlingMethodException(javax.servlet.http.HttpServletRequest request)
request
- the offending HTTP requestpublic NoSuchRequestHandlingMethodException(String urlPath, String method, Map parameterMap)
urlPath
- the request URI that has been used for handler lookupmethod
- the HTTP request method of the requestparameterMap
- the request's parameters as mappublic NoSuchRequestHandlingMethodException(String methodName, Class controllerClass)
methodName
- the name of the handler method that wasn't foundcontrollerClass
- the class the handler method was expected to be inpublic String getMethodName()
Copyright © 2015. All rights reserved.