com.interface21.beans
Class InvalidPropertyValuesException

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

public class InvalidPropertyValuesException
extends BeansException

Exception thrown when PropertyValues are flagged as invalid by a PropertyValuesValidator. After an object of this class is constructed, MissingFieldExceptions can be added one by one.

Version:
1.0
Author:
Rod Johnson
See Also:
Serialized Form

Inner Class Summary
static class InvalidPropertyValuesException.MissingFieldException
           
 
Constructor Summary
InvalidPropertyValuesException(PropertyValues pvs)
           
 
Method Summary
 void addMissingField(java.lang.String field, java.lang.String errorCode)
           
 boolean fieldsAreMissing()
           
 java.util.List getMissingFields()
           
 PropertyValues getPropertyValues()
           
 
Methods inherited from class com.interface21.core.NestedRuntimeException
getMessage, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidPropertyValuesException

public InvalidPropertyValuesException(PropertyValues pvs)
Method Detail

addMissingField

public void addMissingField(java.lang.String field,
                            java.lang.String errorCode)

fieldsAreMissing

public boolean fieldsAreMissing()

getMissingFields

public java.util.List getMissingFields()

getPropertyValues

public PropertyValues getPropertyValues()


Rod Johnson and Spring contributors 2001-2003.