Uses of Interface
org.springframework.validation.Errors
Packages that use Errors
Package
Description
Provides data binding and validation functionality,
for usage in business and/or UI layers.
Support classes for integrating a JSR-303 Bean Validation provider
(such as Hibernate Validator) into a Spring ApplicationContext
and in particular with Spring's data binding and validation APIs.
Abstractions and support classes for method validation, independent of the
underlying validation library.
Provides web-specific data binding functionality.
Support classes for web data binding.
Support for result handling through view resolution.
Support classes for Spring's web MVC framework.
This package contains Spring's JSP standard tag library for JSP 2.0+.
-
Uses of Errors in org.springframework.validation
Subinterfaces of Errors in org.springframework.validationModifier and TypeInterfaceDescriptioninterfaceGeneral interface that represents binding results.Classes in org.springframework.validation that implement ErrorsModifier and TypeClassDescriptionclassAbstract implementation of theBindingResultinterface and its super-interfaceErrors.classAbstract implementation of theErrorsinterface.classAbstract base class forBindingResultimplementations that work with Spring'sPropertyAccessormechanism.classDefault implementation of theErrorsandBindingResultinterfaces, for the registration and evaluation of binding errors on JavaBean objects.classThrown when binding errors are considered fatal.classSpecial implementation of the Errors and BindingResult interfaces, supporting registration and evaluation of binding errors on value objects.classMap-based implementation of the BindingResult interface, supporting registration and evaluation of binding errors on Map attributes.classA simple implementation of theErrorsinterface, managing global errors and field errors for a top-level target object.Methods in org.springframework.validation that return ErrorsModifier and TypeMethodDescriptiondefault ErrorsValidator.validateObject(Object target) Validate the giventargetobject individually.Methods in org.springframework.validation with parameters of type ErrorsModifier and TypeMethodDescriptionvoidAbstractBindingResult.addAllErrors(Errors errors) voidBindException.addAllErrors(Errors errors) default voidErrors.addAllErrors(Errors errors) Add all errors from the givenErrorsinstance to thisErrorsinstance.voidSimpleErrors.addAllErrors(Errors errors) static voidValidationUtils.invokeValidator(Validator validator, Object target, Errors errors) static voidValidationUtils.invokeValidator(Validator validator, Object target, Errors errors, Object... validationHints) static voidValidationUtils.rejectIfEmpty(Errors errors, String field, String errorCode) Reject the given field with the given error code if the value is empty.static voidValidationUtils.rejectIfEmpty(Errors errors, String field, String errorCode, Object[] errorArgs) Reject the given field with the given error code and error arguments if the value is empty.static voidValidationUtils.rejectIfEmpty(Errors errors, String field, String errorCode, Object[] errorArgs, String defaultMessage) Reject the given field with the given error code, error arguments and default message if the value is empty.static voidValidationUtils.rejectIfEmpty(Errors errors, String field, String errorCode, String defaultMessage) Reject the given field with the given error code and default message if the value is empty.static voidValidationUtils.rejectIfEmptyOrWhitespace(Errors errors, String field, String errorCode) Reject the given field with the given error code if the value is empty or just contains whitespace.static voidValidationUtils.rejectIfEmptyOrWhitespace(Errors errors, String field, String errorCode, Object[] errorArgs) Reject the given field with the given error code and error arguments if the value is empty or just contains whitespace.static voidValidationUtils.rejectIfEmptyOrWhitespace(Errors errors, String field, String errorCode, Object[] errorArgs, String defaultMessage) Reject the given field with the given error code, error arguments and default message if the value is empty or just contains whitespace.static voidValidationUtils.rejectIfEmptyOrWhitespace(Errors errors, String field, String errorCode, String defaultMessage) Reject the given field with the given error code and default message if the value is empty or just contains whitespace.voidValidate the suppliedtargetobject, which must be of a type ofClassfor which theValidator.supports(Class)method typically returnstrue.voidValidate the giventargetobject which must be of aClassfor which theValidator.supports(Class)method typically has returned (or would return)true.default voidSmartValidator.validateValue(Class<?> targetType, String fieldName, Object value, Errors errors, Object... validationHints) Validate the supplied value for the specified field on the target type, reporting the same validation errors as if the value would be bound to the field on an instance of the target class.Method parameters in org.springframework.validation with type arguments of type ErrorsModifier and TypeMethodDescriptionstatic <T> ValidatorValidator.forInstanceOf(Class<T> targetClass, BiConsumer<T, Errors> delegate) Return aValidatorthat checks whether the target object is an instance oftargetClass, applying the givendelegateto populateErrorsif it is.static <T> ValidatorValidator.forType(Class<T> targetClass, BiConsumer<T, Errors> delegate) Return aValidatorthat checks whether the target object's class is identical totargetClass, applying the givendelegateto populateErrorsif it is. -
Uses of Errors in org.springframework.validation.beanvalidation
Methods in org.springframework.validation.beanvalidation with parameters of type ErrorsModifier and TypeMethodDescriptionprotected voidSpringValidatorAdapter.processConstraintViolations(Set<ConstraintViolation<Object>> violations, Errors errors) Process the given JSR-303 ConstraintViolations, adding corresponding errors to the provided SpringErrorsobject.voidvoidvoidSpringValidatorAdapter.validateValue(Class<?> targetType, String fieldName, Object value, Errors errors, Object... validationHints) -
Uses of Errors in org.springframework.validation.method
Classes in org.springframework.validation.method that implement ErrorsModifier and TypeClassDescriptionclassExtension ofParameterValidationResultcreated for Object method parameters or return values with nested errors on their properties.Methods in org.springframework.validation.method with parameters of type ErrorsConstructors in org.springframework.validation.method with parameters of type ErrorsModifierConstructorDescriptionParameterErrors(MethodParameter parameter, Object argument, Errors errors, Object container, Integer index, Object key) Create aParameterErrors. -
Uses of Errors in org.springframework.web.bind
Classes in org.springframework.web.bind that implement ErrorsModifier and TypeClassDescriptionclassErrors wrapper that adds automatic HTML escaping to the wrapped instance, for convenient usage in HTML views.classBindExceptionto be thrown when validation on an argument annotated with@Validfails.Methods in org.springframework.web.bind that return ErrorsMethods in org.springframework.web.bind with parameters of type ErrorsConstructors in org.springframework.web.bind with parameters of type ErrorsModifierConstructorDescriptionEscapedErrors(Errors source) Create a new EscapedErrors instance for the given source instance. -
Uses of Errors in org.springframework.web.bind.support
Classes in org.springframework.web.bind.support that implement ErrorsModifier and TypeClassDescriptionclassServerWebInputExceptionsubclass that indicates a data binding or validation failure.Methods in org.springframework.web.bind.support with parameters of type Errors -
Uses of Errors in org.springframework.web.reactive.result.view
Methods in org.springframework.web.reactive.result.view that return ErrorsModifier and TypeMethodDescriptionBindStatus.getErrors()Return the Errors instance (typically a BindingResult) that this bind status is currently associated with.Retrieve the Errors instance for the given bind object, using the "defaultHtmlEscape" setting.Retrieve the Errors instance for the given bind object. -
Uses of Errors in org.springframework.web.servlet.support
Methods in org.springframework.web.servlet.support that return ErrorsModifier and TypeMethodDescriptionBindStatus.getErrors()Return the Errors instance (typically a BindingResult) that this bind status is currently associated with.Retrieve the Errors instance for the given bind object, using the "defaultHtmlEscape" setting.Retrieve the Errors instance for the given bind object. -
Uses of Errors in org.springframework.web.servlet.tags
Methods in org.springframework.web.servlet.tags that return Errors