Polishing as a result of discussion under gh-31529

This commit is contained in:
rstoyanchev 2023-11-02 16:18:16 +00:00
parent 6dd93d4d85
commit 30e4a0a300
2 changed files with 6 additions and 4 deletions

View File

@ -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
*/

View File

@ -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