Skip to content

Commit 5b9cb82

Browse files
jjanksbrannen
authored andcommitted
Fix exception name in ModelAttribute docs
Closes gh-34980 Signed-off-by: Johannes Jank <johannes.wengert@googlemail.com>
1 parent 659472f commit 5b9cb82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-methods/modelattrib-method-args.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ Kotlin::
243243
======
244244

245245
If there is no `BindingResult` parameter after the `@ModelAttribute`, then
246-
`MethodArgumentNotValueException` is raised with the validation errors. However, if method
246+
a `MethodArgumentNotValidException` is raised with the validation errors. However, if method
247247
validation applies because other parameters have `@jakarta.validation.Constraint` annotations,
248248
then `HandlerMethodValidationException` is raised instead. For more details, see the section
249249
xref:web/webmvc/mvc-controller/ann-validation.adoc[Validation].

0 commit comments

Comments
 (0)