jfun.util.beans
Class BeanPropertyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by jfun.util.beans.BeanException
                  extended by jfun.util.beans.BeanPropertyException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NoSuchPropertyException, PropertyNotReadableException, PropertyNotWritableException

public class BeanPropertyException
extends BeanException

Represents an exception related to a property.

Zephyr Business Solutions Corp.

Author:
Ben Yu
See Also:
Serialized Form

Constructor Summary
BeanPropertyException(java.lang.Class type, java.lang.String name)
          Create a BeanPropertyException object.
BeanPropertyException(java.lang.Class type, java.lang.String name, java.lang.String arg0)
          Create a BeanPropertyException object.
 
Method Summary
 java.lang.Class getBeanClass()
          Get the type that this property is concerned with.
 java.lang.String getPropertyName()
          Get the property name.
 
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

BeanPropertyException

public BeanPropertyException(java.lang.Class type,
                             java.lang.String name)
Create a BeanPropertyException object.

Parameters:
type - the type that this property is concerned with.
name - the name of the property.

BeanPropertyException

public BeanPropertyException(java.lang.Class type,
                             java.lang.String name,
                             java.lang.String arg0)
Create a BeanPropertyException object.

Parameters:
type - the type that this property is concerned with.
name - the name of the property.
arg0 - the message.
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Get the property name.

Returns:
the property name.

getBeanClass

public java.lang.Class getBeanClass()
Get the type that this property is concerned with.

Returns:
the type.