@@ -247,7 +247,7 @@ else if (ex instanceof AsyncRequestTimeoutException) {
247
247
* @param handler the executed handler, or {@code null} if none chosen
248
248
* at the time of the exception (for example, if multipart resolution failed)
249
249
* @return an empty ModelAndView indicating the exception was handled
250
- * @throws IOException potentially thrown from response. sendError()
250
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
251
251
*/
252
252
protected ModelAndView handleHttpRequestMethodNotSupported (HttpRequestMethodNotSupportedException ex ,
253
253
HttpServletRequest request , HttpServletResponse response , @ Nullable Object handler ) throws IOException {
@@ -272,7 +272,7 @@ protected ModelAndView handleHttpRequestMethodNotSupported(HttpRequestMethodNotS
272
272
* @param response current HTTP response
273
273
* @param handler the executed handler
274
274
* @return an empty ModelAndView indicating the exception was handled
275
- * @throws IOException potentially thrown from response. sendError()
275
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
276
276
*/
277
277
protected ModelAndView handleHttpMediaTypeNotSupported (HttpMediaTypeNotSupportedException ex ,
278
278
HttpServletRequest request , HttpServletResponse response , @ Nullable Object handler ) throws IOException {
@@ -296,7 +296,7 @@ protected ModelAndView handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupported
296
296
* @param response current HTTP response
297
297
* @param handler the executed handler
298
298
* @return an empty ModelAndView indicating the exception was handled
299
- * @throws IOException potentially thrown from response. sendError()
299
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
300
300
*/
301
301
protected ModelAndView handleHttpMediaTypeNotAcceptable (HttpMediaTypeNotAcceptableException ex ,
302
302
HttpServletRequest request , HttpServletResponse response , @ Nullable Object handler ) throws IOException {
@@ -315,7 +315,7 @@ protected ModelAndView handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptab
315
315
* @param response current HTTP response
316
316
* @param handler the executed handler
317
317
* @return an empty ModelAndView indicating the exception was handled
318
- * @throws IOException potentially thrown from response. sendError()
318
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
319
319
* @since 4.2
320
320
*/
321
321
protected ModelAndView handleMissingPathVariable (MissingPathVariableException ex ,
@@ -335,7 +335,7 @@ protected ModelAndView handleMissingPathVariable(MissingPathVariableException ex
335
335
* @param response current HTTP response
336
336
* @param handler the executed handler
337
337
* @return an empty ModelAndView indicating the exception was handled
338
- * @throws IOException potentially thrown from response. sendError()
338
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
339
339
*/
340
340
protected ModelAndView handleMissingServletRequestParameter (MissingServletRequestParameterException ex ,
341
341
HttpServletRequest request , HttpServletResponse response , @ Nullable Object handler ) throws IOException {
@@ -353,7 +353,7 @@ protected ModelAndView handleMissingServletRequestParameter(MissingServletReques
353
353
* @param response current HTTP response
354
354
* @param handler the executed handler
355
355
* @return an empty ModelAndView indicating the exception was handled
356
- * @throws IOException potentially thrown from response. sendError()
356
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
357
357
*/
358
358
protected ModelAndView handleServletRequestBindingException (ServletRequestBindingException ex ,
359
359
HttpServletRequest request , HttpServletResponse response , @ Nullable Object handler ) throws IOException {
@@ -371,7 +371,7 @@ protected ModelAndView handleServletRequestBindingException(ServletRequestBindin
371
371
* @param response current HTTP response
372
372
* @param handler the executed handler
373
373
* @return an empty ModelAndView indicating the exception was handled
374
- * @throws IOException potentially thrown from response. sendError()
374
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
375
375
*/
376
376
protected ModelAndView handleConversionNotSupported (ConversionNotSupportedException ex ,
377
377
HttpServletRequest request , HttpServletResponse response , @ Nullable Object handler ) throws IOException {
@@ -392,7 +392,7 @@ protected ModelAndView handleConversionNotSupported(ConversionNotSupportedExcept
392
392
* @param response current HTTP response
393
393
* @param handler the executed handler
394
394
* @return an empty ModelAndView indicating the exception was handled
395
- * @throws IOException potentially thrown from response. sendError()
395
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
396
396
*/
397
397
protected ModelAndView handleTypeMismatch (TypeMismatchException ex ,
398
398
HttpServletRequest request , HttpServletResponse response , @ Nullable Object handler ) throws IOException {
@@ -415,7 +415,7 @@ protected ModelAndView handleTypeMismatch(TypeMismatchException ex,
415
415
* @param response current HTTP response
416
416
* @param handler the executed handler
417
417
* @return an empty ModelAndView indicating the exception was handled
418
- * @throws IOException potentially thrown from response. sendError()
418
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
419
419
*/
420
420
protected ModelAndView handleHttpMessageNotReadable (HttpMessageNotReadableException ex ,
421
421
HttpServletRequest request , HttpServletResponse response , @ Nullable Object handler ) throws IOException {
@@ -428,17 +428,18 @@ protected ModelAndView handleHttpMessageNotReadable(HttpMessageNotReadableExcept
428
428
}
429
429
430
430
/**
431
- * Handle the case where a {@linkplain org.springframework.http.converter.HttpMessageConverter message converter}
431
+ * Handle the case where a
432
+ * {@linkplain org.springframework.http.converter.HttpMessageConverter message converter}
432
433
* cannot write to a HTTP request.
433
434
* <p>The default implementation sends an HTTP 500 error, and returns an empty {@code ModelAndView}.
434
- * Alternatively, a fallback view could be chosen, or the HttpMediaTypeNotSupportedException could be
435
- * rethrown as-is.
435
+ * Alternatively, a fallback view could be chosen, or the HttpMediaTypeNotSupportedException could
436
+ * be rethrown as-is.
436
437
* @param ex the HttpMessageNotWritableException to be handled
437
438
* @param request current HTTP request
438
439
* @param response current HTTP response
439
440
* @param handler the executed handler
440
441
* @return an empty ModelAndView indicating the exception was handled
441
- * @throws IOException potentially thrown from response. sendError()
442
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
442
443
*/
443
444
protected ModelAndView handleHttpMessageNotWritable (HttpMessageNotWritableException ex ,
444
445
HttpServletRequest request , HttpServletResponse response , @ Nullable Object handler ) throws IOException {
@@ -453,12 +454,12 @@ protected ModelAndView handleHttpMessageNotWritable(HttpMessageNotWritableExcept
453
454
/**
454
455
* Handle the case where an argument annotated with {@code @Valid} such as
455
456
* an {@link RequestBody} or {@link RequestPart} argument fails validation.
456
- * An HTTP 400 error is sent back to the client.
457
+ * <p>By default, an HTTP 400 error is sent back to the client.
457
458
* @param request current HTTP request
458
459
* @param response current HTTP response
459
460
* @param handler the executed handler
460
461
* @return an empty ModelAndView indicating the exception was handled
461
- * @throws IOException potentially thrown from response. sendError()
462
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
462
463
*/
463
464
protected ModelAndView handleMethodArgumentNotValidException (MethodArgumentNotValidException ex ,
464
465
HttpServletRequest request , HttpServletResponse response , @ Nullable Object handler ) throws IOException {
@@ -470,12 +471,12 @@ protected ModelAndView handleMethodArgumentNotValidException(MethodArgumentNotVa
470
471
/**
471
472
* Handle the case where an {@linkplain RequestPart @RequestPart}, a {@link MultipartFile},
472
473
* or a {@code javax.servlet.http.Part} argument is required but is missing.
473
- * An HTTP 400 error is sent back to the client.
474
+ * <p>By default, an HTTP 400 error is sent back to the client.
474
475
* @param request current HTTP request
475
476
* @param response current HTTP response
476
477
* @param handler the executed handler
477
478
* @return an empty ModelAndView indicating the exception was handled
478
- * @throws IOException potentially thrown from response. sendError()
479
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
479
480
*/
480
481
protected ModelAndView handleMissingServletRequestPartException (MissingServletRequestPartException ex ,
481
482
HttpServletRequest request , HttpServletResponse response , @ Nullable Object handler ) throws IOException {
@@ -488,12 +489,12 @@ protected ModelAndView handleMissingServletRequestPartException(MissingServletRe
488
489
* Handle the case where an {@linkplain ModelAttribute @ModelAttribute} method
489
490
* argument has binding or validation errors and is not followed by another
490
491
* method argument of type {@link BindingResult}.
491
- * By default, an HTTP 400 error is sent back to the client.
492
+ * <p> By default, an HTTP 400 error is sent back to the client.
492
493
* @param request current HTTP request
493
494
* @param response current HTTP response
494
495
* @param handler the executed handler
495
496
* @return an empty ModelAndView indicating the exception was handled
496
- * @throws IOException potentially thrown from response. sendError()
497
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
497
498
*/
498
499
protected ModelAndView handleBindException (BindException ex , HttpServletRequest request ,
499
500
HttpServletResponse response , @ Nullable Object handler ) throws IOException {
@@ -513,7 +514,7 @@ protected ModelAndView handleBindException(BindException ex, HttpServletRequest
513
514
* @param handler the executed handler, or {@code null} if none chosen
514
515
* at the time of the exception (for example, if multipart resolution failed)
515
516
* @return an empty ModelAndView indicating the exception was handled
516
- * @throws IOException potentially thrown from response. sendError()
517
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
517
518
* @since 4.0
518
519
*/
519
520
protected ModelAndView handleNoHandlerFoundException (NoHandlerFoundException ex ,
@@ -532,7 +533,7 @@ protected ModelAndView handleNoHandlerFoundException(NoHandlerFoundException ex,
532
533
* @param handler the executed handler, or {@code null} if none chosen
533
534
* at the time of the exception (for example, if multipart resolution failed)
534
535
* @return an empty ModelAndView indicating the exception was handled
535
- * @throws IOException potentially thrown from response. sendError()
536
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
536
537
* @since 4.2.8
537
538
*/
538
539
protected ModelAndView handleAsyncRequestTimeoutException (AsyncRequestTimeoutException ex ,
0 commit comments