uk.org.ogsadai.config
Class KeyValueIllegalException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by uk.org.ogsadai.exception.DAIException
              extended by uk.org.ogsadai.config.KeyValueIllegalException
All Implemented Interfaces:
java.io.Serializable, DAIExceptionInformation

public class KeyValueIllegalException
extends DAIException

The value associated with a key is illegal.

It is expected that the cause exception will explain why the value is illegal. For example, if the key's value is supposed to specify a URI then the cause exception could be URISyntaxException.

Author:
The OGSA-DAI Project Team
See Also:
Serialized Form

Constructor Summary
KeyValueIllegalException(Key key, java.lang.Object value)
          Constructor.
KeyValueIllegalException(Key key, java.lang.Object value, java.lang.Throwable cause)
          Constructor.
 
Method Summary
 Key getKey()
          Returns the key.
 java.lang.Object getValue()
          Returns the value.
 
Methods inherited from class uk.org.ogsadai.exception.DAIException
getErrorID, getExceptionID, getLocalizedMessage, getMessage, getParameters, hasChild, setErrorID, setParameters
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

KeyValueIllegalException

public KeyValueIllegalException(Key key,
                                java.lang.Object value)
Constructor.

Parameters:
key - the key.
value - the value that is illegal.

KeyValueIllegalException

public KeyValueIllegalException(Key key,
                                java.lang.Object value,
                                java.lang.Throwable cause)
Constructor.

Parameters:
key - the key.
value - the value that is illegal.
cause - the cause exception that explains why the value is illegal.
Method Detail

getKey

public Key getKey()
Returns the key.

Returns:
the key.

getValue

public java.lang.Object getValue()
Returns the value.

Returns:
the value.