Class ValidationErrors

  • All Implemented Interfaces:
    Iterable<org.springframework.validation.ObjectError>

    public class ValidationErrors
    extends Object
    implements Iterable<org.springframework.validation.ObjectError>
    A collection of ObjectErrors caused by bind validation failures. Where possible, included FieldErrors will be OriginProvider.
    Since:
    2.0.0
    • Method Detail

      • getAllErrors

        public List<org.springframework.validation.ObjectError> getAllErrors()
        Return the list of all validation errors.
        Returns:
        the errors
      • iterator

        public Iterator<org.springframework.validation.ObjectError> iterator()
        Specified by:
        iterator in interface Iterable<org.springframework.validation.ObjectError>