Browse Source

Polishing as a result of discussion under gh-31529

pull/31513/head
rstoyanchev 2 years ago
parent
commit
30e4a0a300
  1. 5
      spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityExceptionHandler.java
  2. 5
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java

5
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityExceptionHandler.java

@ -353,8 +353,9 @@ public abstract class ResponseEntityExceptionHandler implements MessageSourceAwa @@ -353,8 +353,9 @@ public abstract class ResponseEntityExceptionHandler implements MessageSourceAwa
* @param status the status to associate with the exception
* @param defaultDetail default value for the "detail" field
* @param detailMessageCode the code to use to look up the "detail" field
* through a {@code MessageSource}, falling back on
* {@link ErrorResponse#getDefaultDetailMessageCode(Class, String)}
* through a {@code MessageSource}; if {@code null} then
* {@link ErrorResponse#getDefaultDetailMessageCode(Class, String)} is used
* to determine the default message code to use
* @param detailMessageArguments the arguments to go with the detailMessageCode
* @return the created {@code ProblemDetail} instance
*/

5
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java

@ -603,8 +603,9 @@ public abstract class ResponseEntityExceptionHandler implements MessageSourceAwa @@ -603,8 +603,9 @@ public abstract class ResponseEntityExceptionHandler implements MessageSourceAwa
* @param status the status to associate with the exception
* @param defaultDetail default value for the "detail" field
* @param detailMessageCode the code to use to look up the "detail" field
* through a {@code MessageSource}, falling back on
* {@link ErrorResponse#getDefaultDetailMessageCode(Class, String)}
* through a {@code MessageSource}; if {@code null} then
* {@link ErrorResponse#getDefaultDetailMessageCode(Class, String)} is used
* to determine the default message code to use
* @param detailMessageArguments the arguments to go with the detailMessageCode
* @param request the current request
* @return the created {@code ProblemDetail} instance

Loading…
Cancel
Save