com.ibm.portal.state.exceptions
Class PropertyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.portal.state.exceptions.StateException
com.ibm.portal.state.exceptions.PropertyException
- All Implemented Interfaces:
- Localized, java.io.Serializable
- Direct Known Subclasses:
- InvalidPropertyException, MissingPropertyException
-
public abstract class PropertyException
- extends StateException
Base exception for all error cases occuring when trying to initialize a class
via a properties file.
- Since:
- 5.1
- See Also:
- Serialized Form
Constructor Summary
|
PropertyException(java.lang.String aKey,
com.ibm.wps.util.Properties aProps)
Initializes the exception by specifying the property that is invalid |
PropertyException(java.lang.String aKey,
com.ibm.wps.util.Properties aProps,
java.lang.Throwable aReason)
Initializes the exception by specifying the property that is invalid |
Method Summary
|
java.lang.String |
getKey()
|
com.ibm.wps.util.Properties |
getProps()
|
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 |
PropertyException
public PropertyException(java.lang.String aKey,
com.ibm.wps.util.Properties aProps)
- Initializes the exception by specifying the property that is invalid
- Parameters:
- aKey - Key of the property in the property collection
- aProps - Property collection that contains the invalid property
PropertyException
public PropertyException(java.lang.String aKey,
com.ibm.wps.util.Properties aProps,
java.lang.Throwable aReason)
- Initializes the exception by specifying the property that is invalid
- Parameters:
- aKey - Key of the property in the property collection
- aProps - Property collection that contains the invalid property
- aReason - Original exception that rendered the property invalid
getKey
public java.lang.String getKey()
- Returns:
- Property collection that contains the invalid property
getProps
public com.ibm.wps.util.Properties getProps()
- Returns:
- Key of the property in the collection above that caused the
exception