uk.co.jcp.util.properties
Class PropertyNotFoundException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--uk.co.jcp.util.properties.PropertyException
                    |
                    +--uk.co.jcp.util.properties.PropertyNotFoundException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SectionNotFoundException

public class PropertyNotFoundException
extends PropertyException

Exception thrown if a requested property is not found

See Also:
Serialized Form

Constructor Summary
PropertyNotFoundException(java.lang.String propertyName)
          Construct a new exception.
 
Method Summary
 java.lang.String getMessage()
          Overloaded to emulate the original functionality.
 java.lang.String getPropertyName()
          Return the name of the unfound property
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyNotFoundException

public PropertyNotFoundException(java.lang.String propertyName)
Construct a new exception.
Parameters:
propertyName - the name of the property that cannot be found
Method Detail

getMessage

public java.lang.String getMessage()
Overloaded to emulate the original functionality.
Overrides:
getMessage in class java.lang.Throwable
Returns:
"Unable to find the property: "

getPropertyName

public java.lang.String getPropertyName()
Return the name of the unfound property