Uses of Class
org.springframework.validation.ObjectError
Package
Description
Provides data binding and validation functionality,
for usage in business and/or UI layers.
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.
-
Uses of ObjectError in org.springframework.validation
Modifier and TypeClassDescriptionclass
Encapsulates a field error, that is, a reason for rejecting a specific field value.Modifier and TypeMethodDescriptionAbstractBindingResult.getGlobalError()
BindException.getGlobalError()
default ObjectError
Errors.getGlobalError()
Get the first global error, if any.Modifier and TypeMethodDescriptionAbstractBindingResult.getAllErrors()
BindException.getAllErrors()
default List<ObjectError>
Errors.getAllErrors()
Get all errors, both global and field ones.AbstractBindingResult.getGlobalErrors()
BindException.getGlobalErrors()
Errors.getGlobalErrors()
Get all global errors.SimpleErrors.getGlobalErrors()
Modifier and TypeMethodDescriptionvoid
AbstractBindingResult.addError
(ObjectError error) void
BindException.addError
(ObjectError error) void
BindingResult.addError
(ObjectError error) Add a customObjectError
orFieldError
to the errors list. -
Uses of ObjectError in org.springframework.validation.method
Modifier and TypeMethodDescriptionParameterErrors.getAllErrors()
ParameterErrors.getGlobalErrors()
-
Uses of ObjectError in org.springframework.web.bind
Modifier and TypeMethodDescriptionEscapedErrors.getAllErrors()
EscapedErrors.getGlobalErrors()
MethodArgumentNotValidException.resolveErrorMessages
(MessageSource messageSource, Locale locale) Deprecated, for removal: This API element is subject to removal in a future version.Modifier and TypeMethodDescriptionMethodArgumentNotValidException.errorsToStringList
(List<? extends ObjectError> errors) Deprecated, for removal: This API element is subject to removal in a future version.in favor of usingBindErrorUtils
andBindException.getAllErrors()
, to be removed in 6.2MethodArgumentNotValidException.errorsToStringList
(List<? extends ObjectError> errors, MessageSource messageSource, Locale locale) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofBindErrorUtils
, to be removed in 6.2 -
Uses of ObjectError in org.springframework.web.bind.support
Modifier and TypeMethodDescriptionWebExchangeBindException.getAllErrors()
WebExchangeBindException.getGlobalErrors()
WebExchangeBindException.resolveErrorMessages
(MessageSource messageSource, Locale locale) Deprecated, for removal: This API element is subject to removal in a future version.in favor of usingBindErrorUtils
andWebExchangeBindException.getAllErrors()
, to be removed in 6.2
BindErrorUtils
andBindException.getAllErrors()
, to be removed in 6.2