Skip to main content

Errors

Learn Errors (Validation, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Errors is the Spring interface org.springframework.validation.Errors that stores binding and validation problems for one target object. Methods include reject (object error), rejectValue (field error), hasErrors and getFieldError . BindingResult extends Errors and is the type you declare in a handler to receive the problems.

More lessons in Validation