org.jdtaus.core.container
Class PropertyException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalStateException
                  extended byorg.jdtaus.core.container.PropertyException
All Implemented Interfaces:
Serializable

public class PropertyException
extends IllegalStateException

Gets thrown for illegal property values.

Version:
$Id: PropertyException.java 1914 2007-03-01 02:20:44Z schulte2005 $
Author:
Christian Schulte
See Also:
Serialized Form

Constructor Summary
PropertyException(String name, Object value)
          Creates a new instance of taking a property name and the invalid value.
PropertyException(String name, Object value, Throwable cause)
          Creates a new instance of taking a property name, the invalid value and a causing throwable.
 
Method Summary
 String getName()
          Gets the name of the invalid property.
 Object getValue()
          Gets the value of the invalid property.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyException

public PropertyException(String name,
                         Object value)
Creates a new instance of taking a property name and the invalid value.

Parameters:
name - the name of the property with invalid value.
value - the invalid value of the property with name .

PropertyException

public PropertyException(String name,
                         Object value,
                         Throwable cause)
Creates a new instance of taking a property name, the invalid value and a causing throwable.

Parameters:
name - the name of the property with invalid value.
value - the invalid value of the property with name .
cause - the causing throwable.
Method Detail

getName

public String getName()
Gets the name of the invalid property.

Returns:
the name of the invalid property or .

getValue

public Object getValue()
Gets the value of the invalid property.

Returns:
the value of the invalid property or .


Copyright © 2005-2007 jDTAUS. All Rights Reserved.