org.codehaus.spice.salt.config
Class ParameterException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.codehaus.spice.salt.config.ParameterException
All Implemented Interfaces:
Serializable

public class ParameterException
extends Exception

The ParameterException is used to signal a problem retrieving a parameter from the Parameters object.

Version:
$Revision: 1.1 $ $Date: 2003/12/02 02:15:04 $
See Also:
Serialized Form

Constructor Summary
ParameterException(String message, String key)
          Create a ParameterException with specified message and key.
ParameterException(String message, String key, Throwable cause)
          Create a ParameterException with specified message, key and cause.
 
Method Summary
 Throwable getCause()
          Return the exception that caused this exception if any.
 String getKey()
          Return the parameter key that caused the problem.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

ParameterException

public ParameterException(String message,
                          String key)
Create a ParameterException with specified message and key.

Parameters:
message - the message
key - the key

ParameterException

public ParameterException(String message,
                          String key,
                          Throwable cause)
Create a ParameterException with specified message, key and cause.

Parameters:
message - the message
key - the key
cause - the cause
Method Detail

getKey

public String getKey()
Return the parameter key that caused the problem.

Returns:
the parameter key that caused the problem.

getCause

public Throwable getCause()
Return the exception that caused this exception if any.

Returns:
the exception that caused this exception if any.


Copyright © 1999-2005 Codehaus. All Rights Reserved.