类 ValidationErrors

  • 所有已实现的接口:
    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.
    从以下版本开始:
    2.0.0
    • 方法详细资料

      • getAllErrors

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

        public Iterator<org.springframework.validation.ObjectError> iterator()
        指定者:
        iterator 在接口中 Iterable<org.springframework.validation.ObjectError>