@@ -190,7 +190,7 @@ else if (ex instanceof AsyncRequestTimeoutException) {
190
190
* @param handler the executed handler, or {@code null} if none chosen
191
191
* at the time of the exception (for example, if multipart resolution failed)
192
192
* @return an empty ModelAndView indicating the exception was handled
193
- * @throws IOException potentially thrown from response. sendError()
193
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
194
194
* @deprecated as of 4.3, along with {@link org.springframework.web.servlet.mvc.multiaction.NoSuchRequestHandlingMethodException}
195
195
*/
196
196
@ Deprecated
@@ -213,7 +213,7 @@ protected ModelAndView handleNoSuchRequestHandlingMethod(org.springframework.web
213
213
* @param handler the executed handler, or {@code null} if none chosen
214
214
* at the time of the exception (for example, if multipart resolution failed)
215
215
* @return an empty ModelAndView indicating the exception was handled
216
- * @throws IOException potentially thrown from response. sendError()
216
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
217
217
*/
218
218
protected ModelAndView handleHttpRequestMethodNotSupported (HttpRequestMethodNotSupportedException ex ,
219
219
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
@@ -238,7 +238,7 @@ protected ModelAndView handleHttpRequestMethodNotSupported(HttpRequestMethodNotS
238
238
* @param response current HTTP response
239
239
* @param handler the executed handler
240
240
* @return an empty ModelAndView indicating the exception was handled
241
- * @throws IOException potentially thrown from response. sendError()
241
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
242
242
*/
243
243
protected ModelAndView handleHttpMediaTypeNotSupported (HttpMediaTypeNotSupportedException ex ,
244
244
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
@@ -262,7 +262,7 @@ protected ModelAndView handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupported
262
262
* @param response current HTTP response
263
263
* @param handler the executed handler
264
264
* @return an empty ModelAndView indicating the exception was handled
265
- * @throws IOException potentially thrown from response. sendError()
265
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
266
266
*/
267
267
protected ModelAndView handleHttpMediaTypeNotAcceptable (HttpMediaTypeNotAcceptableException ex ,
268
268
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
@@ -281,7 +281,7 @@ protected ModelAndView handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptab
281
281
* @param response current HTTP response
282
282
* @param handler the executed handler
283
283
* @return an empty ModelAndView indicating the exception was handled
284
- * @throws IOException potentially thrown from response. sendError()
284
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
285
285
* @since 4.2
286
286
*/
287
287
protected ModelAndView handleMissingPathVariable (MissingPathVariableException ex ,
@@ -301,7 +301,7 @@ protected ModelAndView handleMissingPathVariable(MissingPathVariableException ex
301
301
* @param response current HTTP response
302
302
* @param handler the executed handler
303
303
* @return an empty ModelAndView indicating the exception was handled
304
- * @throws IOException potentially thrown from response. sendError()
304
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
305
305
*/
306
306
protected ModelAndView handleMissingServletRequestParameter (MissingServletRequestParameterException ex ,
307
307
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
@@ -319,7 +319,7 @@ protected ModelAndView handleMissingServletRequestParameter(MissingServletReques
319
319
* @param response current HTTP response
320
320
* @param handler the executed handler
321
321
* @return an empty ModelAndView indicating the exception was handled
322
- * @throws IOException potentially thrown from response. sendError()
322
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
323
323
*/
324
324
protected ModelAndView handleServletRequestBindingException (ServletRequestBindingException ex ,
325
325
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
@@ -337,7 +337,7 @@ protected ModelAndView handleServletRequestBindingException(ServletRequestBindin
337
337
* @param response current HTTP response
338
338
* @param handler the executed handler
339
339
* @return an empty ModelAndView indicating the exception was handled
340
- * @throws IOException potentially thrown from response. sendError()
340
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
341
341
*/
342
342
protected ModelAndView handleConversionNotSupported (ConversionNotSupportedException ex ,
343
343
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
@@ -358,7 +358,7 @@ protected ModelAndView handleConversionNotSupported(ConversionNotSupportedExcept
358
358
* @param response current HTTP response
359
359
* @param handler the executed handler
360
360
* @return an empty ModelAndView indicating the exception was handled
361
- * @throws IOException potentially thrown from response. sendError()
361
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
362
362
*/
363
363
protected ModelAndView handleTypeMismatch (TypeMismatchException ex ,
364
364
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
@@ -381,7 +381,7 @@ protected ModelAndView handleTypeMismatch(TypeMismatchException ex,
381
381
* @param response current HTTP response
382
382
* @param handler the executed handler
383
383
* @return an empty ModelAndView indicating the exception was handled
384
- * @throws IOException potentially thrown from response. sendError()
384
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
385
385
*/
386
386
protected ModelAndView handleHttpMessageNotReadable (HttpMessageNotReadableException ex ,
387
387
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
@@ -394,17 +394,18 @@ protected ModelAndView handleHttpMessageNotReadable(HttpMessageNotReadableExcept
394
394
}
395
395
396
396
/**
397
- * Handle the case where a {@linkplain org.springframework.http.converter.HttpMessageConverter message converter}
397
+ * Handle the case where a
398
+ * {@linkplain org.springframework.http.converter.HttpMessageConverter message converter}
398
399
* cannot write to a HTTP request.
399
400
* <p>The default implementation sends an HTTP 500 error, and returns an empty {@code ModelAndView}.
400
- * Alternatively, a fallback view could be chosen, or the HttpMediaTypeNotSupportedException could be
401
- * rethrown as-is.
401
+ * Alternatively, a fallback view could be chosen, or the HttpMediaTypeNotSupportedException could
402
+ * be rethrown as-is.
402
403
* @param ex the HttpMessageNotWritableException to be handled
403
404
* @param request current HTTP request
404
405
* @param response current HTTP response
405
406
* @param handler the executed handler
406
407
* @return an empty ModelAndView indicating the exception was handled
407
- * @throws IOException potentially thrown from response. sendError()
408
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
408
409
*/
409
410
protected ModelAndView handleHttpMessageNotWritable (HttpMessageNotWritableException ex ,
410
411
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
@@ -419,29 +420,29 @@ protected ModelAndView handleHttpMessageNotWritable(HttpMessageNotWritableExcept
419
420
/**
420
421
* Handle the case where an argument annotated with {@code @Valid} such as
421
422
* an {@link RequestBody} or {@link RequestPart} argument fails validation.
422
- * An HTTP 400 error is sent back to the client.
423
+ * <p>By default, an HTTP 400 error is sent back to the client.
423
424
* @param request current HTTP request
424
425
* @param response current HTTP response
425
426
* @param handler the executed handler
426
427
* @return an empty ModelAndView indicating the exception was handled
427
- * @throws IOException potentially thrown from response. sendError()
428
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
428
429
*/
429
430
protected ModelAndView handleMethodArgumentNotValidException (MethodArgumentNotValidException ex ,
430
431
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
431
432
432
- response .sendError (HttpServletResponse .SC_BAD_REQUEST );
433
+ response .sendError (HttpServletResponse .SC_BAD_REQUEST );
433
434
return new ModelAndView ();
434
435
}
435
436
436
437
/**
437
438
* Handle the case where an {@linkplain RequestPart @RequestPart}, a {@link MultipartFile},
438
439
* or a {@code javax.servlet.http.Part} argument is required but is missing.
439
- * An HTTP 400 error is sent back to the client.
440
+ * <p>By default, an HTTP 400 error is sent back to the client.
440
441
* @param request current HTTP request
441
442
* @param response current HTTP response
442
443
* @param handler the executed handler
443
444
* @return an empty ModelAndView indicating the exception was handled
444
- * @throws IOException potentially thrown from response. sendError()
445
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
445
446
*/
446
447
protected ModelAndView handleMissingServletRequestPartException (MissingServletRequestPartException ex ,
447
448
HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException {
@@ -454,12 +455,12 @@ protected ModelAndView handleMissingServletRequestPartException(MissingServletRe
454
455
* Handle the case where an {@linkplain ModelAttribute @ModelAttribute} method
455
456
* argument has binding or validation errors and is not followed by another
456
457
* method argument of type {@link BindingResult}.
457
- * By default, an HTTP 400 error is sent back to the client.
458
+ * <p> By default, an HTTP 400 error is sent back to the client.
458
459
* @param request current HTTP request
459
460
* @param response current HTTP response
460
461
* @param handler the executed handler
461
462
* @return an empty ModelAndView indicating the exception was handled
462
- * @throws IOException potentially thrown from response. sendError()
463
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
463
464
*/
464
465
protected ModelAndView handleBindException (BindException ex , HttpServletRequest request ,
465
466
HttpServletResponse response , Object handler ) throws IOException {
@@ -479,7 +480,7 @@ protected ModelAndView handleBindException(BindException ex, HttpServletRequest
479
480
* @param handler the executed handler, or {@code null} if none chosen
480
481
* at the time of the exception (for example, if multipart resolution failed)
481
482
* @return an empty ModelAndView indicating the exception was handled
482
- * @throws IOException potentially thrown from response. sendError()
483
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
483
484
* @since 4.0
484
485
*/
485
486
protected ModelAndView handleNoHandlerFoundException (NoHandlerFoundException ex ,
@@ -498,7 +499,7 @@ protected ModelAndView handleNoHandlerFoundException(NoHandlerFoundException ex,
498
499
* @param handler the executed handler, or {@code null} if none chosen
499
500
* at the time of the exception (for example, if multipart resolution failed)
500
501
* @return an empty ModelAndView indicating the exception was handled
501
- * @throws IOException potentially thrown from response. sendError()
502
+ * @throws IOException potentially thrown from {@link HttpServletResponse# sendError}
502
503
* @since 4.2.8
503
504
*/
504
505
protected ModelAndView handleAsyncRequestTimeoutException (AsyncRequestTimeoutException ex ,
0 commit comments