Skip to content

Commit cc87fbc

Browse files
simonbowringjhoeller
authored andcommitted
Fix javadoc comments to match behaviour
1 parent c4aea62 commit cc87fbc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
* </tr>
8989
* <tr class="altColor">
9090
* <td><p>MissingServletRequestParameterException</p></td>
91-
* <td><p>500 (SC_INTERNAL_SERVER_ERROR)</p></td>
91+
* <td><p>400 (SC_BAD_REQUEST)</p></td>
9292
* </tr>
9393
* <tr class="rowColor">
9494
* <td><p>ServletRequestBindingException</p></td>
@@ -364,7 +364,8 @@ protected ModelAndView handleServletRequestBindingException(ServletRequestBindin
364364
/**
365365
* Handle the case when a {@link org.springframework.web.bind.WebDataBinder} conversion cannot occur.
366366
* <p>The default implementation sends an HTTP 500 error, and returns an empty {@code ModelAndView}.
367-
* Alternatively, a fallback view could be chosen, or the TypeMismatchException could be rethrown as-is.
367+
* Alternatively, a fallback view could be chosen, or the ConversionNotSupportedException could be
368+
* rethrown as-is.
368369
* @param ex the ConversionNotSupportedException to be handled
369370
* @param request current HTTP request
370371
* @param response current HTTP response
@@ -401,7 +402,7 @@ protected ModelAndView handleTypeMismatch(TypeMismatchException ex,
401402
* Handle the case where a {@linkplain org.springframework.http.converter.HttpMessageConverter message converter}
402403
* cannot read from a HTTP request.
403404
* <p>The default implementation sends an HTTP 400 error, and returns an empty {@code ModelAndView}.
404-
* Alternatively, a fallback view could be chosen, or the HttpMediaTypeNotSupportedException could be
405+
* Alternatively, a fallback view could be chosen, or the HttpMessageNotReadableException could be
405406
* rethrown as-is.
406407
* @param ex the HttpMessageNotReadableException to be handled
407408
* @param request current HTTP request
@@ -422,7 +423,7 @@ protected ModelAndView handleHttpMessageNotReadable(HttpMessageNotReadableExcept
422423
* {@linkplain org.springframework.http.converter.HttpMessageConverter message converter}
423424
* cannot write to a HTTP request.
424425
* <p>The default implementation sends an HTTP 500 error, and returns an empty {@code ModelAndView}.
425-
* Alternatively, a fallback view could be chosen, or the HttpMediaTypeNotSupportedException could
426+
* Alternatively, a fallback view could be chosen, or the HttpMessageNotWritableException could
426427
* be rethrown as-is.
427428
* @param ex the HttpMessageNotWritableException to be handled
428429
* @param request current HTTP request

0 commit comments

Comments
 (0)