org.apache.cayenne.reflect
Class PropertyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.cayenne.CayenneRuntimeException
                  extended by org.apache.cayenne.reflect.PropertyException
All Implemented Interfaces:
java.io.Serializable

public class PropertyException
extends CayenneRuntimeException

An unchecked exception thrown on errors during property access, either within a Accessor or a Property.

Since:
3.0
See Also:
Serialized Form

Field Summary
protected  Accessor accessor
           
protected  Property property
           
protected  java.lang.Object source
           
 
Constructor Summary
PropertyException(java.lang.String messageFormat, Accessor accessor, java.lang.Object source, java.lang.Object... messageArgs)
           
PropertyException(java.lang.String messageFormat, Accessor accessor, java.lang.Object source, java.lang.Throwable cause, java.lang.Object... messageArgs)
           
PropertyException(java.lang.String messageFormat, java.lang.Object... messageArgs)
           
PropertyException(java.lang.String messageFormat, Property property, java.lang.Object source, java.lang.Object... messageArgs)
           
PropertyException(java.lang.String messageFormat, Property property, java.lang.Object source, java.lang.Throwable cause, java.lang.Object... messageArgs)
           
PropertyException(java.lang.String messageFormat, java.lang.Throwable cause, java.lang.Object... messageArgs)
           
 
Method Summary
 Accessor getAccessor()
          Returns property descriptor that was used to access the property.
 Property getProperty()
           
 java.lang.Object getSource()
          Returns an object that caused an error.
 
Methods inherited from class org.apache.cayenne.CayenneRuntimeException
getMessage, getUnlabeledMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

property

protected Property property

accessor

protected Accessor accessor

source

protected java.lang.Object source
Constructor Detail

PropertyException

public PropertyException(java.lang.String messageFormat,
                         java.lang.Object... messageArgs)

PropertyException

public PropertyException(java.lang.String messageFormat,
                         java.lang.Throwable cause,
                         java.lang.Object... messageArgs)

PropertyException

public PropertyException(java.lang.String messageFormat,
                         Accessor accessor,
                         java.lang.Object source,
                         java.lang.Object... messageArgs)

PropertyException

public PropertyException(java.lang.String messageFormat,
                         Accessor accessor,
                         java.lang.Object source,
                         java.lang.Throwable cause,
                         java.lang.Object... messageArgs)

PropertyException

public PropertyException(java.lang.String messageFormat,
                         Property property,
                         java.lang.Object source,
                         java.lang.Object... messageArgs)

PropertyException

public PropertyException(java.lang.String messageFormat,
                         Property property,
                         java.lang.Object source,
                         java.lang.Throwable cause,
                         java.lang.Object... messageArgs)
Method Detail

getAccessor

public Accessor getAccessor()
Returns property descriptor that was used to access the property. It may be null.


getProperty

public Property getProperty()

getSource

public java.lang.Object getSource()
Returns an object that caused an error.



Copyright © 2001-2012 Apache Cayenne. All Rights Reserved.