|
|||||||||||
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 java.lang.RuntimeException nl.chess.it.util.config.ConfigurationException nl.chess.it.util.config.InvalidPropertyException
Thrown when a property could not be parsed as the expected type.
Field Summary | |
protected java.lang.String |
expectedtype
Describes what type of variable we though the property should be. |
protected java.lang.String |
propertyname
Name of the property (key in Properties). |
protected java.lang.String |
value
Actual value read. |
Fields inherited from class java.lang.RuntimeException |
|
Constructor Summary | |
InvalidPropertyException()
Constructs a new InvalidPropertyException where no fields have been filled in (yet). |
|
InvalidPropertyException(java.lang.String propertyname)
Constructs a new InvalidPropertyException where some fields are not filled in (yet). |
|
InvalidPropertyException(java.lang.String propertyname,
java.lang.String value,
java.lang.String expectedType)
Constructs a new InvalidPropertyException. |
Method Summary | |
java.lang.String |
getExpectedtype()
|
java.lang.String |
getPropertyname()
|
java.lang.String |
getValue()
|
void |
setExpectedtype(java.lang.String expectedtype)
|
void |
setPropertyname(java.lang.String propertyname)
|
void |
setValue(java.lang.String value)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String expectedtype
protected java.lang.String propertyname
protected java.lang.String value
Constructor Detail |
public InvalidPropertyException()
public InvalidPropertyException(java.lang.String propertyname)
propertyname
- Name of the property that couldn't be parsed.public InvalidPropertyException(java.lang.String propertyname, java.lang.String value, java.lang.String expectedType)
propertyname
- Name of the property that couldn't be parsed.value
- Value that caused the problem.expectedType
- String description of the expected type.Method Detail |
public java.lang.String getPropertyname()
public java.lang.String getValue()
public java.lang.String getExpectedtype()
public java.lang.String toString()
public void setValue(java.lang.String value)
public void setExpectedtype(java.lang.String expectedtype)
public void setPropertyname(java.lang.String propertyname)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |