Package org.apache.cayenne.reflect
Class PropertyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.cayenne.CayenneRuntimeException
org.apache.cayenne.reflect.PropertyException
- All Implemented Interfaces:
- 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
- 
Constructor SummaryConstructors Constructor Description PropertyException(String messageFormat, Object... messageArgs)PropertyException(String messageFormat, Throwable cause, Object... messageArgs)PropertyException(String messageFormat, Accessor accessor, Object source, Object... messageArgs)PropertyException(String messageFormat, Accessor accessor, Object source, Throwable cause, Object... messageArgs)PropertyException(String messageFormat, PropertyDescriptor property, Object source, Object... messageArgs)PropertyException(String messageFormat, PropertyDescriptor property, Object source, Throwable cause, Object... messageArgs)
- 
Method SummaryModifier and Type Method Description AccessorgetAccessor()Returns property descriptor that was used to access the property.PropertyDescriptorgetProperty()ObjectgetSource()Returns an object that caused an error.Methods inherited from class org.apache.cayenne.CayenneRuntimeExceptiongetExceptionLabel, getMessage, getUnlabeledMessageMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
property
- 
accessor
- 
source
 
- 
- 
Constructor Details- 
PropertyException
- 
PropertyException
- 
PropertyException
- 
PropertyException
- 
PropertyExceptionpublic PropertyException(String messageFormat, PropertyDescriptor property, Object source, Object... messageArgs)
- 
PropertyExceptionpublic PropertyException(String messageFormat, PropertyDescriptor property, Object source, Throwable cause, Object... messageArgs)
 
- 
- 
Method Details- 
getAccessorReturns property descriptor that was used to access the property. It may be null.
- 
getProperty
- 
getSourceReturns an object that caused an error.
 
-