Skip to content

Commit 302c24a

Browse files
LinorDolevsnicoll
authored andcommitted
Fix default strategy description of ProblemDetail error codes
See gh-32446
1 parent 7357812 commit 302c24a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,13 @@ It is a common requirement to customize and internationalize error response deta
7474
It is also good practice to customize the problem details for Spring MVC exceptions
7575
to avoid revealing implementation details. This section describes the support for that.
7676

77-
An `ErrorResponse` exposes message codes for "type", "title", and "detail", as well as
78-
message code arguments for the "detail" field. `ResponseEntityExceptionHandler` resolves
77+
An `ErrorResponse` exposes message codes for "type" and "title". `ResponseEntityExceptionHandler` resolves
7978
these through a xref:core/beans/context-introduction.adoc#context-functionality-messagesource[MessageSource]
8079
and updates the corresponding `ProblemDetail` fields accordingly.
8180

8281
The default strategy for message codes follows the pattern:
8382

84-
`problemDetail.[type|title|detail].[fully qualified exception class name]`
83+
`problemDetail.[type|title].[fully qualified exception class name]`
8584

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

0 commit comments

Comments
 (0)