Fix exception name in ModelAttribute docs
Closes gh-34980 Signed-off-by: Johannes Jank <johannes.wengert@googlemail.com>
This commit is contained in:
parent
659472f9e3
commit
5b9cb8291e
|
@ -243,7 +243,7 @@ Kotlin::
|
||||||
======
|
======
|
||||||
|
|
||||||
If there is no `BindingResult` parameter after the `@ModelAttribute`, then
|
If there is no `BindingResult` parameter after the `@ModelAttribute`, then
|
||||||
`MethodArgumentNotValueException` is raised with the validation errors. However, if method
|
a `MethodArgumentNotValidException` is raised with the validation errors. However, if method
|
||||||
validation applies because other parameters have `@jakarta.validation.Constraint` annotations,
|
validation applies because other parameters have `@jakarta.validation.Constraint` annotations,
|
||||||
then `HandlerMethodValidationException` is raised instead. For more details, see the section
|
then `HandlerMethodValidationException` is raised instead. For more details, see the section
|
||||||
xref:web/webmvc/mvc-controller/ann-validation.adoc[Validation].
|
xref:web/webmvc/mvc-controller/ann-validation.adoc[Validation].
|
||||||
|
|
Loading…
Reference in New Issue