Uses of Class
org.springframework.validation.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
Modifier and TypeClassDescriptionclass
Encapsulates a field error, that is, a reason for rejecting a specific field value.Modifier and TypeMethodDescriptionAbstractBindingResult.getGlobalError()
AbstractErrors.getGlobalError()
BindException.getGlobalError()
Errors.getGlobalError()
Get the first global error, if any.Modifier 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.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.web.bind
Modifier 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
Modifier and TypeMethodDescriptionWebExchangeBindException.getAllErrors()
WebExchangeBindException.getGlobalErrors()