Uses of Class
org.springframework.validation.ObjectError
Packages that use ObjectError
Package
Description
Provides data binding and validation functionality,
for usage in business and/or UI layers.
Provides web-specific data binding functionality.
Support classes for web data binding.
-
Uses of ObjectError in org.springframework.validation
Subclasses of ObjectError in org.springframework.validationModifier and TypeClassDescriptionclass
Encapsulates a field error, that is, a reason for rejecting a specific field value.Methods in org.springframework.validation that return ObjectErrorModifier and TypeMethodDescriptionAbstractBindingResult.getGlobalError()
AbstractErrors.getGlobalError()
BindException.getGlobalError()
Errors.getGlobalError()
Get the first global error, if any.Methods in org.springframework.validation that return types with arguments of type ObjectErrorModifier and TypeMethodDescriptionAbstractBindingResult.getAllErrors()
AbstractErrors.getAllErrors()
BindException.getAllErrors()
Errors.getAllErrors()
Get all errors, both global and field ones.AbstractBindingResult.getGlobalErrors()
BindException.getGlobalErrors()
Errors.getGlobalErrors()
Get all global errors.Methods in org.springframework.validation with parameters of type ObjectErrorModifier 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.web.bind
Methods in org.springframework.web.bind that return ObjectErrorMethods in org.springframework.web.bind that return types with arguments of type ObjectErrorModifier and TypeMethodDescriptionEscapedErrors.getAllErrors()
EscapedErrors.getGlobalErrors()
MethodArgumentNotValidException.resolveErrorMessages
(MessageSource messageSource, Locale locale) Resolve global and field errors to messages with the givenMessageSource
andLocale
.Method parameters in org.springframework.web.bind with type arguments of type ObjectErrorModifier and TypeMethodDescriptionMethodArgumentNotValidException.errorsToStringList
(List<? extends ObjectError> errors) Convert each givenObjectError
to a String in single quotes, taking either the error's default message, or its error code.MethodArgumentNotValidException.errorsToStringList
(List<? extends ObjectError> errors, MessageSource source, Locale locale) Variant ofMethodArgumentNotValidException.errorsToStringList(List)
that uses aMessageSource
to resolve the message code of the error, or fall back on the error's default message. -
Uses of ObjectError in org.springframework.web.bind.support
Methods in org.springframework.web.bind.support that return ObjectErrorMethods in org.springframework.web.bind.support that return types with arguments of type ObjectErrorModifier and TypeMethodDescriptionWebExchangeBindException.getAllErrors()
WebExchangeBindException.getGlobalErrors()
WebExchangeBindException.resolveErrorMessages
(MessageSource messageSource, Locale locale) Resolve global and field errors to messages with the givenMessageSource
andLocale
.Methods in org.springframework.web.bind.support with parameters of type ObjectError