org.jdtaus.core.container
Class PropertyException

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

public class PropertyException
extends IllegalStateException

Gets thrown for illegal property values.

Version:
$Id: PropertyException.java 8044 2009-07-02 01:29:05Z schulte2005 $
Author:
Christian Schulte
See Also:
Serialized Form

Constructor Summary
PropertyException(String name, Object value)
          Creates a new instance of PropertyException taking a property name and the invalid value.
PropertyException(String name, Object value, Throwable cause)
          Creates a new instance of PropertyException 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 PropertyException 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 name.

PropertyException

public PropertyException(String name,
                         Object value,
                         Throwable cause)
Creates a new instance of PropertyException 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 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 null.

getValue

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

Returns:
the value of the invalid property or null.


Copyright © 2005-2009 jDTAUS. All Rights Reserved.