|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception net.lucidviews.util.PropertyException
public class 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 FormField Summary | |
---|---|
protected String |
_propertyKey
The key that references the property that was missing/invalid. |
protected String |
_propertySource
A description of where the properties were read from. |
protected String |
_propertyValue
The value of the property that was not valid. |
static String |
MISSING_VALUE
Property value used when the error is caused by a missing value. |
Constructor Summary | |
---|---|
PropertyException(String propertySource,
String propertyKey)
Create a new exception caused by a missing property value. |
|
PropertyException(String propertySource,
String propertyKey,
String propertyValue,
ParseValueException parseException)
Create a new exception caused by an invalid property value. |
Method Summary | |
---|---|
String |
getPropertyKey()
|
String |
getPropertySource()
|
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 String MISSING_VALUE
protected String _propertySource
protected String _propertyKey
protected String _propertyValue
Constructor Detail |
---|
public PropertyException(String propertySource, String propertyKey, 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
valuepublic PropertyException(String propertySource, 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
tableMethod Detail |
---|
public String getPropertySource()
public String getPropertyKey()
public 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 |