org.xins.common.collections
Class InvalidPropertyValueException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.xins.common.collections.InvalidPropertyValueException
All Implemented Interfaces:
Serializable

public final class InvalidPropertyValueException
extends Exception

Exception thrown to indicate the property of a value is invalid.

Since:
XINS 1.0.0
Version:
$Revision: 1.14 $ $Date: 2006/08/28 09:12:32 $
Author:
Ernst de Haan
See Also:
MissingRequiredPropertyException, Serialized Form

Constructor Summary
InvalidPropertyValueException(String propertyName, String propertyValue)
          Constructs a new InvalidPropertyValueException.
InvalidPropertyValueException(String propertyName, String propertyValue, String reason)
          Constructs a new InvalidPropertyValueException with the specified reason.
 
Method Summary
 String getPropertyName()
          Returns the name of the property.
 String getPropertyValue()
          Returns the (invalid) value of the property.
 String getReason()
          Returns the description of the reason.
 
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
 

Constructor Detail

InvalidPropertyValueException

public InvalidPropertyValueException(String propertyName,
                                     String propertyValue)
                              throws IllegalArgumentException
Constructs a new InvalidPropertyValueException.

Parameters:
propertyName - the name of the property, cannot be null.
propertyValue - the (invalid) value set for the property, cannot be null.
Throws:
IllegalArgumentException - if propertyName == null || propertyValue == null.

InvalidPropertyValueException

public InvalidPropertyValueException(String propertyName,
                                     String propertyValue,
                                     String reason)
                              throws IllegalArgumentException
Constructs a new InvalidPropertyValueException with the specified reason.

Parameters:
propertyName - the name of the property, cannot be null.
propertyValue - the (invalid) value set for the property, cannot be null.
reason - additional description of the problem, or null.
Throws:
IllegalArgumentException - if propertyName == null || propertyValue == null.
Method Detail

getPropertyName

public String getPropertyName()
Returns the name of the property.

Returns:
the name of the property, never null.

getPropertyValue

public String getPropertyValue()
Returns the (invalid) value of the property.

Returns:
the value of the property, never null.

getReason

public String getReason()
Returns the description of the reason.

Returns:
the reason, or null.


See http://www.xins.org/.