Skip to content

Commit 68a3993

Browse files
committed
Merge pull request #32446 from LinorDolev
* pr/32446: Polish "Fix default strategy description of ProblemDetail error codes" Fix default strategy description of ProblemDetail error codes Closes gh-32446
2 parents 7357812 + dfc1b83 commit 68a3993

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

framework-docs/modules/ROOT/pages/web/webmvc/mvc-ann-rest-exceptions.adoc

+4-2
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ message code arguments for the "detail" field. `ResponseEntityExceptionHandler`
7979
these through a xref:core/beans/context-introduction.adoc#context-functionality-messagesource[MessageSource]
8080
and updates the corresponding `ProblemDetail` fields accordingly.
8181

82-
The default strategy for message codes follows the pattern:
82+
The default strategy for message codes is as follows:
8383

84-
`problemDetail.[type|title|detail].[fully qualified exception class name]`
84+
* "type": `problemDetail.type.[fully qualified exception class name]`
85+
* "title": `problemDetail.title.[fully qualified exception class name]`
86+
* "detail": `problemDetail.[fully qualified exception class name][suffix]`
8587

8688
An `ErrorResponse` may expose more than one message code, typically adding a suffix
8789
to the default message code. The table below lists message codes, and arguments for

0 commit comments

Comments
 (0)