@@ -257,7 +257,8 @@ else if (ex instanceof BindException) {
257
257
* @param response current HTTP response
258
258
* @param handler the executed handler, or {@code null} if none chosen
259
259
* at the time of the exception (for example, if multipart resolution failed)
260
- * @return an empty ModelAndView indicating the exception was handled
260
+ * @return an empty {@code ModelAndView} indicating the exception was handled, or
261
+ * {@code null} indicating the exception should be handled in {@link #handleErrorResponse}
261
262
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
262
263
*/
263
264
@ Nullable
@@ -277,7 +278,8 @@ protected ModelAndView handleHttpRequestMethodNotSupported(HttpRequestMethodNotS
277
278
* @param request current HTTP request
278
279
* @param response current HTTP response
279
280
* @param handler the executed handler
280
- * @return an empty ModelAndView indicating the exception was handled
281
+ * @return an empty {@code ModelAndView} indicating the exception was handled, or
282
+ * {@code null} indicating the exception should be handled in {@link #handleErrorResponse}
281
283
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
282
284
*/
283
285
@ Nullable
@@ -297,7 +299,8 @@ protected ModelAndView handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupported
297
299
* @param request current HTTP request
298
300
* @param response current HTTP response
299
301
* @param handler the executed handler
300
- * @return an empty ModelAndView indicating the exception was handled
302
+ * @return an empty {@code ModelAndView} indicating the exception was handled, or
303
+ * {@code null} indicating the exception should be handled in {@link #handleErrorResponse}
301
304
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
302
305
*/
303
306
@ Nullable
@@ -315,7 +318,8 @@ protected ModelAndView handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptab
315
318
* @param request current HTTP request
316
319
* @param response current HTTP response
317
320
* @param handler the executed handler
318
- * @return an empty ModelAndView indicating the exception was handled
321
+ * @return an empty {@code ModelAndView} indicating the exception was handled, or
322
+ * {@code null} indicating the exception should be handled in {@link #handleErrorResponse}
319
323
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
320
324
* @since 4.2
321
325
*/
@@ -334,7 +338,8 @@ protected ModelAndView handleMissingPathVariable(MissingPathVariableException ex
334
338
* @param request current HTTP request
335
339
* @param response current HTTP response
336
340
* @param handler the executed handler
337
- * @return an empty ModelAndView indicating the exception was handled
341
+ * @return an empty {@code ModelAndView} indicating the exception was handled, or
342
+ * {@code null} indicating the exception should be handled in {@link #handleErrorResponse}
338
343
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
339
344
*/
340
345
@ Nullable
@@ -351,7 +356,8 @@ protected ModelAndView handleMissingServletRequestParameter(MissingServletReques
351
356
* @param request current HTTP request
352
357
* @param response current HTTP response
353
358
* @param handler the executed handler
354
- * @return an empty ModelAndView indicating the exception was handled
359
+ * @return an empty {@code ModelAndView} indicating the exception was handled, or
360
+ * {@code null} indicating the exception should be handled in {@link #handleErrorResponse}
355
361
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
356
362
*/
357
363
@ Nullable
@@ -370,7 +376,8 @@ protected ModelAndView handleMissingServletRequestPartException(MissingServletRe
370
376
* @param request current HTTP request
371
377
* @param response current HTTP response
372
378
* @param handler the executed handler
373
- * @return an empty ModelAndView indicating the exception was handled
379
+ * @return an empty {@code ModelAndView} indicating the exception was handled, or
380
+ * {@code null} indicating the exception should be handled in {@link #handleErrorResponse}
374
381
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
375
382
*/
376
383
@ Nullable
@@ -388,7 +395,8 @@ protected ModelAndView handleServletRequestBindingException(ServletRequestBindin
388
395
* @param request current HTTP request
389
396
* @param response current HTTP response
390
397
* @param handler the executed handler
391
- * @return an empty ModelAndView indicating the exception was handled
398
+ * @return an empty {@code ModelAndView} indicating the exception was handled, or
399
+ * {@code null} indicating the exception should be handled in {@link #handleErrorResponse}
392
400
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
393
401
*/
394
402
@ Nullable
@@ -407,7 +415,8 @@ protected ModelAndView handleMethodArgumentNotValidException(MethodArgumentNotVa
407
415
* @param response current HTTP response
408
416
* @param handler the executed handler, or {@code null} if none chosen
409
417
* at the time of the exception (for example, if multipart resolution failed)
410
- * @return an empty ModelAndView indicating the exception was handled
418
+ * @return an empty {@code ModelAndView} indicating the exception was handled, or
419
+ * {@code null} indicating the exception should be handled in {@link #handleErrorResponse}
411
420
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
412
421
* @since 4.0
413
422
*/
@@ -428,7 +437,8 @@ protected ModelAndView handleNoHandlerFoundException(NoHandlerFoundException ex,
428
437
* @param response current HTTP response
429
438
* @param handler the executed handler, or {@code null} if none chosen
430
439
* at the time of the exception (for example, if multipart resolution failed)
431
- * @return an empty ModelAndView indicating the exception was handled
440
+ * @return an empty {@code ModelAndView} indicating the exception was handled, or
441
+ * {@code null} indicating the exception should be handled in {@link #handleErrorResponse}
432
442
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
433
443
* @since 4.2.8
434
444
*/
@@ -449,7 +459,7 @@ protected ModelAndView handleAsyncRequestTimeoutException(AsyncRequestTimeoutExc
449
459
* @param request current HTTP request
450
460
* @param response current HTTP response
451
461
* @param handler the executed handler
452
- * @return an empty ModelAndView indicating the exception was handled
462
+ * @return an empty {@code ModelAndView} indicating the exception was handled
453
463
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
454
464
* @since 6.0
455
465
*/
@@ -485,7 +495,7 @@ protected ModelAndView handleErrorResponse(ErrorResponse errorResponse,
485
495
* @param request current HTTP request
486
496
* @param response current HTTP response
487
497
* @param handler the executed handler
488
- * @return an empty ModelAndView indicating the exception was handled
498
+ * @return an empty {@code ModelAndView} indicating the exception was handled
489
499
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
490
500
*/
491
501
protected ModelAndView handleConversionNotSupported (ConversionNotSupportedException ex ,
@@ -503,7 +513,7 @@ protected ModelAndView handleConversionNotSupported(ConversionNotSupportedExcept
503
513
* @param request current HTTP request
504
514
* @param response current HTTP response
505
515
* @param handler the executed handler
506
- * @return an empty ModelAndView indicating the exception was handled
516
+ * @return an empty {@code ModelAndView} indicating the exception was handled
507
517
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
508
518
*/
509
519
protected ModelAndView handleTypeMismatch (TypeMismatchException ex ,
@@ -523,7 +533,7 @@ protected ModelAndView handleTypeMismatch(TypeMismatchException ex,
523
533
* @param request current HTTP request
524
534
* @param response current HTTP response
525
535
* @param handler the executed handler
526
- * @return an empty ModelAndView indicating the exception was handled
536
+ * @return an empty {@code ModelAndView} indicating the exception was handled
527
537
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
528
538
*/
529
539
protected ModelAndView handleHttpMessageNotReadable (HttpMessageNotReadableException ex ,
@@ -544,7 +554,7 @@ protected ModelAndView handleHttpMessageNotReadable(HttpMessageNotReadableExcept
544
554
* @param request current HTTP request
545
555
* @param response current HTTP response
546
556
* @param handler the executed handler
547
- * @return an empty ModelAndView indicating the exception was handled
557
+ * @return an empty {@code ModelAndView} indicating the exception was handled
548
558
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
549
559
*/
550
560
protected ModelAndView handleHttpMessageNotWritable (HttpMessageNotWritableException ex ,
@@ -562,7 +572,7 @@ protected ModelAndView handleHttpMessageNotWritable(HttpMessageNotWritableExcept
562
572
* @param request current HTTP request
563
573
* @param response current HTTP response
564
574
* @param handler the executed handler
565
- * @return an empty ModelAndView indicating the exception was handled
575
+ * @return an empty {@code ModelAndView} indicating the exception was handled
566
576
* @throws IOException potentially thrown from {@link HttpServletResponse#sendError}
567
577
*/
568
578
protected ModelAndView handleBindException (BindException ex , HttpServletRequest request ,
0 commit comments