net.infonode.properties.base.exception
Class PropertyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.infonode.properties.base.exception.PropertyException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CantRemoveValueException, ImmutablePropertyException, InvalidPropertyException, InvalidPropertyTypeException, InvalidPropertyValueException

public class PropertyException
extends java.lang.RuntimeException

Base class for all property exceptions.

Version:
$Revision: 1.3 $
Author:
$Author: jesper $
See Also:
Serialized Form

Field Summary
private  Property property
           
 
Constructor Summary
PropertyException(Property property, java.lang.String text)
          Constructor.
 
Method Summary
 Property getProperty()
          Returns the property that triggered this exception.
 
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

property

private Property property
Constructor Detail

PropertyException

public PropertyException(Property property,
                         java.lang.String text)
Constructor.

Parameters:
property - the property that triggered this exception
text - the exception text
Method Detail

getProperty

public Property getProperty()
Returns the property that triggered this exception.

Returns:
the property that triggered this exception