org.springframework.beans
Class PropertyAccessExceptionsException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.springframework.core.NestedRuntimeException
                          |
                          +--org.springframework.beans.BeansException
                                |
                                +--org.springframework.beans.PropertyAccessExceptionsException

public class PropertyAccessExceptionsException
extends BeansException

Combined exception, composed of individual binding exceptions. 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 exceptions, applying those changes that can be applied and storing rejected changes in an object of this class.

Author:
Rod Johnson
Version: $Id: PropertyAccessExceptionsException.java,v 1.2 2004/02/07 00:14:02 jhoeller Exp $
Since: 18 April 2001

Constructor Summary
 (package private) PropertyAccessExceptionsException(BeanWrapper beanWrapper)
          Create new empty PropertyAccessExceptionsException.

Method Summary
 (package private) voidaddPropertyAccessException(PropertyAccessException ex)
           
 BeanWrappergetBeanWrapper()
          Return the BeanWrapper that generated this exception.
 ObjectgetBindObject()
          Return the object we're binding to.
 intgetExceptionCount()
          If this returns 0, no errors were encountered during binding.
 PropertyAccessExceptiongetPropertyAccessException(String propertyName)
          Return the exception for this field, or null if there isn't one.
 PropertyAccessException[]getPropertyAccessExceptions()
          Return an array of the exceptions stored in this object.
 voidprintStackTrace(PrintStream ps)
           
 voidprintStackTrace(PrintWriter pw)
           
 StringtoString()
           

Methods inherited from class org.springframework.core.NestedRuntimeException
getCause, getMessage

Methods inherited from class java.lang.Throwable
printStackTrace, getStackTrace, setStackTrace, getLocalizedMessage, fillInStackTrace, initCause

Methods inherited from class java.lang.Object
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals

Constructor Detail

PropertyAccessExceptionsException

PropertyAccessExceptionsException(BeanWrapper beanWrapper)
Create new empty PropertyAccessExceptionsException. We'll add errors to it as we attempt to bind properties.
Method Detail

addPropertyAccessException

void addPropertyAccessException(PropertyAccessException ex)

getBeanWrapper

public BeanWrapper getBeanWrapper()
Return the BeanWrapper that generated this exception.

getBindObject

public Object getBindObject()
Return the object we're binding to.

getExceptionCount

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

getPropertyAccessException

public PropertyAccessException getPropertyAccessException(String propertyName)
Return the exception for this field, or null if there isn't one.

getPropertyAccessExceptions

public PropertyAccessException[] getPropertyAccessExceptions()
Return an array of the exceptions stored in this object. Will return the empty array (not null) if there were no errors.

printStackTrace

public void printStackTrace(PrintStream ps)

printStackTrace

public void printStackTrace(PrintWriter pw)

toString

public String toString()

Association Links

to Class java.util.List

List of ErrorCodedPropertyVetoException objects

to Class org.springframework.beans.BeanWrapper

BeanWrapper wrapping the target object for binding