Update table of supported controller method return types

Closes gh-28814
This commit is contained in:
rstoyanchev
2022-10-11 15:10:30 +01:00
parent 04f0f1ddb0
commit cf2b1020f4
3 changed files with 49 additions and 11 deletions

View File

@@ -4960,6 +4960,9 @@ The actual message code value is parameterized with placeholders, e.g.
`"HTTP method {0} not supported"` to be expanded from the arguments.
- `ResponseEntityExceptionHandler` uses the message code and the message arguments
to resolve the problem "detail" field.
- Lower level exceptions that cannot implement `ErrorResponse`, e.g. `TypeMismatchException`,
have their problem detail, including message code and arguments set in
`ResponseEntityExceptionHandler`.
Message codes default to "problemDetail." + the fully qualified exception class name. Some
exceptions may expose additional message codes in which case a suffix is added to
@@ -4975,6 +4978,10 @@ MVC exceptions:
| (default)
|
| `ConversionNotSupportedException`
| (default)
| `{0}` property name, `{1}` property value
| `HttpMediaTypeNotAcceptableException`
| (default)
| `{0}` list of supported media types
@@ -4991,6 +4998,14 @@ MVC exceptions:
| (default) + ".parseError"
|
| `HttpMessageNotReadableException`
| (default)
|
| `HttpMessageNotWritableException`
| (default)
|
| `HttpRequestMethodNotSupportedException`
| (default)
| `{0}` the current HTTP method, `{1}` the list of supported HTTP methods
@@ -5029,6 +5044,10 @@ MVC exceptions:
| (default)
|
| `TypeMismatchException`
| (default)
| `{0}` property name, `{1}` property value
| `UnsatisfiedServletRequestParameterException`
| (default)
| `{0}` the list of parameter conditions