org.spicefactory.cinnamon.reflect
Class PropertyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.spicefactory.cinnamon.reflect.PropertyException
All Implemented Interfaces:
Serializable

public class PropertyException
extends RuntimeException

Exception thrown when reading from or writing to a Bean Property fails.

Author:
Jens Halm
See Also:
Serialized Form

Constructor Summary
PropertyException(Property property, String message)
          Creates a new PropertyException
PropertyException(Property property, String message, Throwable cause)
          Creates a new PropertyException
 
Method Summary
 Property getProperty()
          Returns the affected Property instance.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyException

public PropertyException(Property property,
                         String message,
                         Throwable cause)
Creates a new PropertyException

Parameters:
property - the affected Property instance
message - the error message
cause - the root cause

PropertyException

public PropertyException(Property property,
                         String message)
Creates a new PropertyException

Parameters:
property - the affected Property instance
message - the error message
Method Detail

getProperty

public Property getProperty()
Returns the affected Property instance.

Returns:
the affected Property