Class NoHandlerFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.servlet.ServletException
org.springframework.web.servlet.NoHandlerFoundException
All Implemented Interfaces:
Serializable, ErrorResponse

public class NoHandlerFoundException extends ServletException implements ErrorResponse
Thrown when the DispatcherServlet can't find a handler for a request, which may be handled with a configured HandlerExceptionResolver.
Since:
4.0
Author:
Brian Clozel
See Also:
  • Constructor Details

    • NoHandlerFoundException

      public NoHandlerFoundException(String httpMethod, String requestURL, HttpHeaders headers)
      Constructor for NoHandlerFoundException.
      Parameters:
      httpMethod - the HTTP method
      requestURL - the HTTP request URL
      headers - the HTTP request headers
  • Method Details