Class PropertyBatchUpdateException

  • All Implemented Interfaces:

    public class PropertyBatchUpdateException
    extends BeansException
    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.

    18 April 2001
    Rod Johnson, Juergen Hoeller
    See Also:
    Serialized Form
    • Constructor Detail

      • PropertyBatchUpdateException

        public PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)
        Create a new PropertyBatchUpdateException.
        propertyAccessExceptions - the List of PropertyAccessExceptions
    • Method Detail

      • getExceptionCount

        public final int getExceptionCount()
        If this returns 0, no errors were encountered during binding.
      • getPropertyAccessExceptions

        public final PropertyAccessException[] getPropertyAccessExceptions()
        Return an array of the propertyAccessExceptions stored in this object.

        Will return the empty array (not null) if there were no errors.

      • getPropertyAccessException

        public PropertyAccessException getPropertyAccessException(java.lang.String propertyName)
        Return the exception for this field, or null if there isn't any.
      • toString

        public java.lang.String toString()
        toString in class java.lang.Throwable
      • printStackTrace

        public void printStackTrace( ps)
        printStackTrace in class java.lang.Throwable
      • printStackTrace

        public void printStackTrace( pw)
        printStackTrace in class java.lang.Throwable
      • contains

        public boolean contains(@Nullable
                                java.lang.Class<?> exType)
        Description copied from class: NestedRuntimeException
        Check 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.
        contains in class NestedRuntimeException
        exType - the exception type to look for
        whether there is a nested exception of the specified type