Framework Professional Edition Package


com.prosyst.util.beans
Class BeanException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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
 

Field Detail

beanClass

protected java.lang.Class beanClass

property

protected java.lang.String property
Constructor Detail

BeanException

public BeanException(java.lang.Class beanClass,
                     java.lang.String property,
                     java.lang.String message)
Constructs a new BeanException.

Parameters:
beanClass - class of the bean
property - name of the property
message - message
Method Detail

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

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved