Package org.springframework.beans
Class PropertyBatchUpdateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.beans.BeansException
org.springframework.beans.PropertyBatchUpdateException
- All Implemented Interfaces:
- Serializable
Combined exception, composed of individual PropertyAccessException instances.
 An object of this class is created at the beginning of the binding
 process, and errors added to it as necessary.
 
The binding process continues when it encounters application-level PropertyAccessExceptions, applying those changes that can be applied and storing rejected changes in an object of this class.
- Since:
- 18 April 2001
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionPropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions) Create a new PropertyBatchUpdateException.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCheck whether this exception contains an exception of the given type: either it is of the given class itself or it contains a nested cause of the given type.final intIf this returns 0, no errors were encountered during binding.getPropertyAccessException(String propertyName) Return the exception for this field, ornullif there isn't any.final PropertyAccessException[]Return an array of the propertyAccessExceptions stored in this object.voidvoidtoString()Methods inherited from class org.springframework.core.NestedRuntimeExceptiongetMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace
- 
Constructor Details- 
PropertyBatchUpdateExceptionCreate a new PropertyBatchUpdateException.- Parameters:
- propertyAccessExceptions- the List of PropertyAccessExceptions
 
 
- 
- 
Method Details- 
getExceptionCountpublic final int getExceptionCount()If this returns 0, no errors were encountered during binding.
- 
getPropertyAccessExceptionsReturn an array of the propertyAccessExceptions stored in this object.Will return the empty array (not null) if there were no errors.
- 
getPropertyAccessExceptionReturn the exception for this field, ornullif there isn't any.
- 
getMessage- Overrides:
- getMessagein class- Throwable
 
- 
toString
- 
printStackTrace- Overrides:
- printStackTracein class- Throwable
 
- 
printStackTrace- Overrides:
- printStackTracein class- Throwable
 
- 
containsDescription copied from class:NestedRuntimeExceptionCheck whether this exception contains an exception of the given type: either it is of the given class itself or it contains a nested cause of the given type.- Overrides:
- containsin class- NestedRuntimeException
- Parameters:
- exType- the exception type to look for
- Returns:
- whether there is a nested exception of the specified type
 
 
-