|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.richclient.application.ApplicationException
org.springframework.richclient.application.ConfigurationException
org.springframework.richclient.application.PropertyNotSetException
public class PropertyNotSetException
Indicates that the initialization of an object has not set a required property.
| Constructor Summary | |
|---|---|
PropertyNotSetException(Class beanClass,
String propertyName)
Creates a new PropertyNotSetException with the specified bean
class and property name. |
|
| Method Summary | |
|---|---|
Class |
getBeanClass()
Returns the class of the JavaBean that has the uninitialized property. |
String |
getPropertyName()
Returns the name of the property that has not been set. |
static void |
throwIfNull(Object propertyValue,
String propertyName,
Class beanClass)
Throws an instance of this exception if the given propertyValue
is null. |
| 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 |
|---|
public PropertyNotSetException(Class beanClass,
String propertyName)
PropertyNotSetException with the specified bean
class and property name.
beanClass - The class of the JavaBean that has an uninitialized
property.propertyName - The name of the property that has not been set.| Method Detail |
|---|
public static void throwIfNull(Object propertyValue,
String propertyName,
Class beanClass)
propertyValue
is null.
propertyValue - The value of the property.propertyName - The name of the property.beanClass - The class on which the property is supposed to be set.
PropertyNotSetException - if propertyValue is null.public Class getBeanClass()
public String getPropertyName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||