PropertyBatchUpdateException class
The error BeanWrapper.setPropertyValues throws when one or more of the values could not be written, after trying all of them.
exceptions holds one error per failed property, so all problems can be reported at once.
try {
wrapper.setPropertyValues({'age': 'old', 'nickname': 'x'});
} on PropertyBatchUpdateException catch (e) {
e.exceptions.forEach(log.warning); // one entry per failed property
}
Spring (Java):
try {
wrapper.setPropertyValues(new MutablePropertyValues(values));
} catch (PropertyBatchUpdateException e) {
for (PropertyAccessException ex : e.getPropertyAccessExceptions()) {
log.warn(ex.getMessage());
}
}
- Inheritance
-
- Object
- BeansException
- PropertyBatchUpdateException
Constructors
-
PropertyBatchUpdateException(List<
BeansException> exceptions) -
Reports the individual failures in
exceptions.
Properties
- cause → Object?
-
The error that caused this one, if any: what a constructor threw, or
the container error of a nested bean.
finalinherited
-
exceptions
→ List<
BeansException> -
The failures, in the order of the values.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A human-readable description of the problem.
finalinherited
- mostSpecificCause → Object
-
rootCause, or this exception when it has no cause. Spring:
getMostSpecificCause().no setterinherited - rootCause → Object?
-
The innermost cause: cause followed through nested container
errors, or
nullwithout a cause. Usually the error that really went wrong. Spring:getRootCause().no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited