public class NoHandlerFoundException
extends ServletException
true
this exception is raised and may be handled with
a configured HandlerExceptionResolver.DispatcherServlet.setThrowExceptionIfNoHandlerFound(boolean)
,
DispatcherServlet.noHandlerFound(HttpServletRequest, HttpServletResponse)
Modifier and Type | Field and Description |
---|---|
private HttpHeaders |
headers |
private java.lang.String |
httpMethod |
private java.lang.String |
requestURL |
Constructor and Description |
---|
NoHandlerFoundException(java.lang.String httpMethod,
java.lang.String requestURL,
HttpHeaders headers)
Constructor for NoHandlerFoundException.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
getHeaders() |
java.lang.String |
getHttpMethod() |
java.lang.String |
getRequestURL() |
private final java.lang.String httpMethod
private final java.lang.String requestURL
private final HttpHeaders headers
public NoHandlerFoundException(java.lang.String httpMethod, java.lang.String requestURL, HttpHeaders headers)
httpMethod
- the HTTP methodrequestURL
- the HTTP request URLheaders
- the HTTP request headerspublic java.lang.String getHttpMethod()
public java.lang.String getRequestURL()
public HttpHeaders getHeaders()