|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.lucidviews.util.PropertyException
Exception raised by the Properties class when a property is
missing or invalid.
The exception stores extra information about the source of the properties
table, the id/key of the property and its value.
Properties,
Serialized Form| Field Summary | |
protected java.lang.String |
_propertyKey
The key that references the property that was missing/invalid. |
protected java.lang.String |
_propertySource
A description of where the properties were read from. |
protected java.lang.String |
_propertyValue
The value of the property that was not valid. |
static java.lang.String |
MISSING_VALUE
Property value used when the error is caused by a missing value. |
| Fields inherited from class java.lang.Exception |
|
| Fields inherited from class java.lang.Throwable |
|
| Constructor Summary | |
PropertyException(java.lang.String propertySource,
java.lang.String propertyKey)
Create a new exception caused by a missing property value. |
|
PropertyException(java.lang.String propertySource,
java.lang.String propertyKey,
java.lang.String propertyValue,
ParseValueException parseException)
Create a new exception caused by an invalid property value. |
|
| Method Summary | |
java.lang.String |
getPropertyKey()
|
java.lang.String |
getPropertySource()
|
java.lang.String |
getPropertyValue()
|
| 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 |
| Field Detail |
public static final java.lang.String MISSING_VALUE
protected java.lang.String _propertySource
protected java.lang.String _propertyKey
protected java.lang.String _propertyValue
| Constructor Detail |
public PropertyException(java.lang.String propertySource,
java.lang.String propertyKey,
java.lang.String propertyValue,
ParseValueException parseException)
propertySource - a description of where the property was read frompropertyKey - the key that references the property in the
Properties tablepropertyValue - the value that was invalidparseException - the error raised when trying to parse the property
value
public PropertyException(java.lang.String propertySource,
java.lang.String propertyKey)
propertySource - a description of where the property was expected to
be definedpropertyKey - the key that was expected to reference the property in
the Properties table| Method Detail |
public java.lang.String getPropertySource()
public java.lang.String getPropertyKey()
public java.lang.String getPropertyValue()
null if the value did
not exist)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||