com.prosyst.util.beans
Class BeanException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.prosyst.util.beans.BeanException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- NoSuchPropertyException
public class BeanException
- extends java.lang.Exception
A general exception thrown during bean introspection.
- Author:
- Krasimir Nedkov
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.Class |
beanClass
|
protected java.lang.String |
property
|
|
Constructor Summary |
BeanException(java.lang.Class beanClass,
java.lang.String property,
java.lang.String message)
Constructs a new BeanException. |
|
Method Summary |
java.lang.Class |
getBeanClass()
Returns the bean class that owns the property. |
java.lang.String |
getMessage()
|
java.lang.String |
getProperty()
Returns the name of the property that generated the error (for example,
'foo' for the bean property getFoo()). |
| 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 |
beanClass
protected java.lang.Class beanClass
property
protected java.lang.String property
BeanException
public BeanException(java.lang.Class beanClass,
java.lang.String property,
java.lang.String message)
- Constructs a new BeanException.
- Parameters:
beanClass - class of the beanproperty - name of the propertymessage - message
getBeanClass
public java.lang.Class getBeanClass()
- Returns the bean class that owns the property.
- Returns:
- the bean class that owns the property
getProperty
public java.lang.String getProperty()
- Returns the name of the property that generated the error (for example,
'foo' for the bean property
getFoo()).
- Returns:
- the property that generated the error
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage in class java.lang.Throwable
Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved