spring-beans

org.springframework.beans
Class PropertyBatchUpdateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.beans.BeansException
                      extended by org.springframework.beans.PropertyBatchUpdateException
All Implemented Interfaces:
java.io.Serializable

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.

Since:
18 April 2001
Author:
Rod Johnson, Juergen Hoeller
See Also:
Serialized Form

Constructor Summary
PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)
          Create a new PropertyBatchUpdateException.
 
Method Summary
 boolean contains(java.lang.Class exType)
           
 int getExceptionCount()
          If this returns 0, no errors were encountered during binding.
 java.lang.String getMessage()
           
 PropertyAccessException getPropertyAccessException(java.lang.String propertyName)
          Return the exception for this field, or null if there isn't any.
 PropertyAccessException[] getPropertyAccessExceptions()
          Return an array of the propertyAccessExceptions stored in this object.
 void printStackTrace(java.io.PrintStream ps)
           
 void printStackTrace(java.io.PrintWriter pw)
           
 java.lang.String toString()
           
 
Methods inherited from class org.springframework.beans.BeansException
equals, hashCode
 
Methods inherited from class org.springframework.core.NestedRuntimeException
getMostSpecificCause, getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyBatchUpdateException

public PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)
Create a new PropertyBatchUpdateException.

Parameters:
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.


getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class org.springframework.core.NestedRuntimeException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Overrides:
printStackTrace in class java.lang.Throwable

contains

public boolean contains(java.lang.Class exType)
Overrides:
contains in class org.springframework.core.NestedRuntimeException

spring-beans