com.interface21.beans
Class PropertyVetoExceptionsException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.interface21.core.NestedRuntimeException
                          |
                          +--com.interface21.beans.BeansException
                                |
                                +--com.interface21.beans.PropertyVetoExceptionsException
All Implemented Interfaces:
HasRootCause, java.io.Serializable

public class PropertyVetoExceptionsException
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.

Since:
18 April 2001
Version:
$Id: PropertyVetoExceptionsException.java,v 1.1.1.1 2003/02/11 08:10:11 johnsonr Exp $
Author:
Rod Johnson
See Also:
Serialized Form

Method Summary
 BeanWrapper getBeanWrapper()
          Return the BeanWrapper that generated this exception
 java.lang.Object getBindObject()
          Return the object we're binding to
 int getExceptionCount()
          If this returns 0, no errors were encountered during binding
 java.util.Map getMessages()
          Messages keyed by field name
 ErrorCodedPropertyVetoException getPropertyVetoException(java.lang.String propertyName)
           
 ErrorCodedPropertyVetoException[] getPropertyVetoExceptions()
           
 java.util.Iterator iterator()
          Errors iterator
 java.lang.String toString()
           
 
Methods inherited from class com.interface21.core.NestedRuntimeException
getMessage, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getBeanWrapper

public BeanWrapper getBeanWrapper()
Return the BeanWrapper that generated this exception
Returns:
the BeanWrapper that generated this exception

getBindObject

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

getMessages

public java.util.Map getMessages()
Messages keyed by field name

iterator

public java.util.Iterator iterator()
Errors iterator

getExceptionCount

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

getPropertyVetoExceptions

public ErrorCodedPropertyVetoException[] getPropertyVetoExceptions()
Returns:
an array of the exceptions stored in this object. Will return the empty array (not null) if there were no errors.

getPropertyVetoException

public ErrorCodedPropertyVetoException getPropertyVetoException(java.lang.String propertyName)
Returns:
the exception for this field, or null if there isn't one

toString

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


Rod Johnson and Spring contributors 2001-2003.