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 final ProblemDetail | |
| private final String | |
| private final HttpHeaders | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | NoHandlerFoundException(String
the HTTP method httpMethod, String the HTTP request URL requestURL, HttpHeaders the HTTP request headers headers)Constructor for NoHandlerFoundException. |
| Modifier and Type | Method and Description |
|---|---|
| public ProblemDetail | getBody()
Implements org. Return the body for the response, formatted as an RFC 7807
|
| public HttpHeaders | getHeaders()
Overrides default org. Return headers to use for the response. |
| public String | |
| public HttpHeaders | |
| public String | |
| public HttpStatusCode | getStatusCode()
Implements org. Return the HTTP status code to use for the response. |
| body | back to summary |
|---|---|
| private final ProblemDetail body | |
| httpMethod | back to summary |
|---|---|
| private final String httpMethod | |
| requestHeaders | back to summary |
|---|---|
| private final HttpHeaders requestHeaders | |
| requestURL | back to summary |
|---|---|
| private final String requestURL | |
| NoHandlerFoundException | back to summary |
|---|---|
| public NoHandlerFoundException(String httpMethod, String requestURL, HttpHeaders headers) Constructor for NoHandlerFoundException.
| |
| getBody | back to summary |
|---|---|
| public ProblemDetail getBody() Implements org. Doc from org. Return the body for the response, formatted as an RFC 7807
| |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Overrides default org. Return headers to use for the response. Note As of 6.0 this method overlaps with
| |
| getHttpMethod | back to summary |
|---|---|
| public String getHttpMethod() | |
| getRequestHeaders | back to summary |
|---|---|
| public HttpHeaders getRequestHeaders() Return the headers of the request.
| |
| getRequestURL | back to summary |
|---|---|
| public String getRequestURL() | |
| getStatusCode | back to summary |
|---|---|
| public HttpStatusCode getStatusCode() Implements org. Doc from org. Return the HTTP status code to use for the response.
| |