Package | Description |
---|---|
org.springframework.validation |
Provides data binding and validation functionality,
for usage in business and/or UI layers.
|
org.springframework.web.bind |
Provides web-specific data binding functionality.
|
org.springframework.web.bind.support |
Support classes for web data binding.
|
Modifier and Type | Class and Description |
---|---|
class |
FieldError
Encapsulates a field error, that is, a reason for rejecting a specific
field value.
|
Modifier and Type | Method and Description |
---|---|
ObjectError |
AbstractBindingResult.getGlobalError() |
ObjectError |
Errors.getGlobalError()
Get the first global error, if any.
|
ObjectError |
BindException.getGlobalError() |
ObjectError |
AbstractErrors.getGlobalError() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ObjectError> |
AbstractBindingResult.getAllErrors() |
java.util.List<ObjectError> |
Errors.getAllErrors()
Get all errors, both global and field ones.
|
java.util.List<ObjectError> |
BindException.getAllErrors() |
java.util.List<ObjectError> |
AbstractErrors.getAllErrors() |
java.util.List<ObjectError> |
AbstractBindingResult.getGlobalErrors() |
java.util.List<ObjectError> |
Errors.getGlobalErrors()
Get all global errors.
|
java.util.List<ObjectError> |
BindException.getGlobalErrors() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractBindingResult.addError(ObjectError error) |
void |
BindException.addError(ObjectError error) |
void |
BindingResult.addError(ObjectError error)
Add a custom
ObjectError or FieldError to the errors list. |
Modifier and Type | Method and Description |
---|---|
ObjectError |
EscapedErrors.getGlobalError() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ObjectError> |
EscapedErrors.getAllErrors() |
java.util.List<ObjectError> |
EscapedErrors.getGlobalErrors() |
Modifier and Type | Method and Description |
---|---|
ObjectError |
WebExchangeBindException.getGlobalError() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ObjectError> |
WebExchangeBindException.getAllErrors() |
java.util.List<ObjectError> |
WebExchangeBindException.getGlobalErrors() |
Modifier and Type | Method and Description |
---|---|
void |
WebExchangeBindException.addError(ObjectError error) |