nl.chess.it.util.config
Class InvalidPropertyException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bynl.chess.it.util.config.ConfigurationException
                  extended bynl.chess.it.util.config.InvalidPropertyException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PropertyParseException

public class InvalidPropertyException
extends ConfigurationException

Thrown when a property could not be parsed as the expected type.

Version:
$Revision: 1.1.1.1 $
Author:
Guus Bosman (Chess iT)
See Also:
Serialized Form

Field Summary
protected  java.lang.String expectedtype
          Describes what type of variable we though the property should be.
protected  java.lang.String propertyname
          Name of the property (key in Properties).
protected  java.lang.String value
          Actual value read.
 
Fields inherited from class java.lang.RuntimeException
 
Constructor Summary
InvalidPropertyException()
          Constructs a new InvalidPropertyException where no fields have been filled in (yet).
InvalidPropertyException(java.lang.String propertyname)
          Constructs a new InvalidPropertyException where some fields are not filled in (yet).
InvalidPropertyException(java.lang.String propertyname, java.lang.String value, java.lang.String expectedType)
          Constructs a new InvalidPropertyException.
 
Method Summary
 java.lang.String getExpectedtype()
           
 java.lang.String getPropertyname()
           
 java.lang.String getValue()
           
 void setExpectedtype(java.lang.String expectedtype)
           
 void setPropertyname(java.lang.String propertyname)
           
 void setValue(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

expectedtype

protected java.lang.String expectedtype
Describes what type of variable we though the property should be.


propertyname

protected java.lang.String propertyname
Name of the property (key in Properties).


value

protected java.lang.String value
Actual value read.

Constructor Detail

InvalidPropertyException

public InvalidPropertyException()
Constructs a new InvalidPropertyException where no fields have been filled in (yet).


InvalidPropertyException

public InvalidPropertyException(java.lang.String propertyname)
Constructs a new InvalidPropertyException where some fields are not filled in (yet).

Parameters:
propertyname - Name of the property that couldn't be parsed.

InvalidPropertyException

public InvalidPropertyException(java.lang.String propertyname,
                                java.lang.String value,
                                java.lang.String expectedType)
Constructs a new InvalidPropertyException.

Parameters:
propertyname - Name of the property that couldn't be parsed.
value - Value that caused the problem.
expectedType - String description of the expected type.
Method Detail

getPropertyname

public java.lang.String getPropertyname()

getValue

public java.lang.String getValue()

getExpectedtype

public java.lang.String getExpectedtype()

toString

public java.lang.String toString()

setValue

public void setValue(java.lang.String value)

setExpectedtype

public void setExpectedtype(java.lang.String expectedtype)

setPropertyname

public void setPropertyname(java.lang.String propertyname)


Copyright © 2003-2005 Chess-iT. All Rights Reserved.