@Test void testHandleSpringNotFoundException() { Exception e = mock(Exception.class); HttpServletRequest request = new MockHttpServletRequest(); springExceptionHandler.handleSpringNotFoundException(e, request); verify(springExceptionHandler).logAndHandleException(e, NOT_FOUND, request); }
@ExceptionHandler(NoHandlerFoundException.class) public final Object handleSpringNotFoundException(Exception e, HttpServletRequest request) { return logAndHandleException(e, NOT_FOUND, request); }
SpringExceptionHandler { @ExceptionHandler(NoHandlerFoundException.class) public final Object handleSpringNotFoundException(Exception e, HttpServletRequest request) { return logAndHandleException(e, NOT_FOUND, request); } }
SpringExceptionHandler { @ExceptionHandler(NoHandlerFoundException.class) public final Object handleSpringNotFoundException(Exception e, HttpServletRequest request) { return logAndHandleException(e, NOT_FOUND, request); }  }
SpringExceptionHandler { @ExceptionHandler(NoHandlerFoundException.class) public final Object handleSpringNotFoundException(Exception e, HttpServletRequest request) { return logAndHandleException(e, NOT_FOUND, request); }  @ExceptionHandler(HttpRequestMethodNotSupportedException.class) final Object handleSpringMethodNotAllowedException(
      Exception e, HttpServletRequest request); @ExceptionHandler(NoHandlerFoundException.class) final Object handleSpringNotFoundException(Exception e, HttpServletRequest request); @ExceptionHandler(MaxUploadSizeExceededException.class) final Object handleSpringPayloadTooLargeException(
      Exception e, HttpServletRequest request); @ExceptionHandler(HttpMediaTypeNotSupportedException.class) final Object handleSpringUnsupportedMediaTypeException(
      Exception e, HandlerMethod handlerMethod); @ExceptionHandler(HttpMediaTypeNotAcceptableException.class) final Object handleSpringNotAcceptableException(Exception e, HandlerMethod handlerMethod); @ExceptionHandler({ MissingServletRequestParameterException.class, ServletRequestBindingException.class, TypeMismatchException.class, HttpMessageNotReadableException.class, MethodArgumentNotValidException.class, MissingServletRequestPartException.class, BindException.class, ConstraintViolationException.class }) final Object handleSpringBadRequestException(Exception e, HandlerMethod handlerMethod); @ExceptionHandler(AsyncRequestTimeoutException.class) final Object handleSpringServiceUnavailableException(
      Exception e, HandlerMethod handlerMethod); }
SpringExceptionHandler { @ExceptionHandler(NoHandlerFoundException.class) public final Object handleSpringNotFoundException(Exception e, HttpServletRequest request) { return logAndHandleException(e, NOT_FOUND, request); }  @ExceptionHandler(HttpRequestMethodNotSupportedException.class) final Object handleSpringMethodNotAllowedException(
      Exception e, HttpServletRequest request); @ExceptionHandler(NoHandlerFoundException.class) final Object handleSpringNotFoundException(Exception e, HttpServletRequest request); @ExceptionHandler(MaxUploadSizeExceededException.class) final Object handleSpringPayloadTooLargeException(
      Exception e, HttpServletRequest request); @ExceptionHandler(HttpMediaTypeNotSupportedException.class) final Object handleSpringUnsupportedMediaTypeException(
      Exception e, HandlerMethod handlerMethod); @ExceptionHandler(HttpMediaTypeNotAcceptableException.class) final Object handleSpringNotAcceptableException(Exception e, HandlerMethod handlerMethod); @ExceptionHandler({ MissingServletRequestParameterException.class, ServletRequestBindingException.class, TypeMismatchException.class, HttpMessageNotReadableException.class, MethodArgumentNotValidException.class, MissingServletRequestPartException.class, BindException.class, ConstraintViolationException.class }) final Object handleSpringBadRequestException(Exception e, HandlerMethod handlerMethod); @ExceptionHandler(AsyncRequestTimeoutException.class) final Object handleSpringServiceUnavailableException(
      Exception e, HandlerMethod handlerMethod);  }