ObjectError
Learn ObjectError (Validation, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes ObjectError is a validation problem about the whole object, not one field, also called a global error. FieldError extends ObjectError, so getAllErrors() returns both kinds. Created by errors.reject("code", "message") or by class-level constraints.