com.anthonyeden.lib.config
Class ConfigurationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.anthonyeden.lib.ChainedException
              extended bycom.anthonyeden.lib.config.ConfigurationException
All Implemented Interfaces:
java.io.Serializable

public class ConfigurationException
extends ChainedException

Exception thrown when there is an error while reading, writing or manipulating Configurations.

Author:
Anthony Eden
See Also:
Serialized Form

Constructor Summary
ConfigurationException(java.lang.String message)
          Construct a ConfigurationException with the given message.
ConfigurationException(java.lang.String message, Configuration configuration)
          Construct a ConfigurationException with the given message.
ConfigurationException(java.lang.String message, java.lang.Throwable t)
          Construct a ConfigurationException with the given message.
ConfigurationException(java.lang.String message, java.lang.Throwable t, Configuration configuration)
          Construct a ConfigurationException with the given message and nested error.
ConfigurationException(java.lang.Throwable t)
          Construct a ConfigurationException with the given message.
ConfigurationException(java.lang.Throwable t, Configuration configuration)
          Construct a ConfigurationException with the given nested error.
 
Method Summary
 java.lang.String getMessage()
          Overrides the Throwable.getMessage() method and adds additional configuration location information if it is available.
 
Methods inherited from class com.anthonyeden.lib.ChainedException
getNestedError, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationException

public ConfigurationException(java.lang.String message)
Construct a ConfigurationException with the given message.

Parameters:
message - The message

ConfigurationException

public ConfigurationException(java.lang.Throwable t)
Construct a ConfigurationException with the given message.

Parameters:
t - The Throwable

ConfigurationException

public ConfigurationException(java.lang.String message,
                              java.lang.Throwable t)
Construct a ConfigurationException with the given message.

Parameters:
message - The message

ConfigurationException

public ConfigurationException(java.lang.String message,
                              Configuration configuration)
Construct a ConfigurationException with the given message.

Parameters:
message - The message
configuration - The Configuration object

ConfigurationException

public ConfigurationException(java.lang.Throwable t,
                              Configuration configuration)
Construct a ConfigurationException with the given nested error. The message of the nested error will be used as this exception's message.

Parameters:
t - The nested error
configuration - The Configuration object

ConfigurationException

public ConfigurationException(java.lang.String message,
                              java.lang.Throwable t,
                              Configuration configuration)
Construct a ConfigurationException with the given message and nested error.

Parameters:
message - The message
t - The nested error
configuration - The Configuration
Method Detail

getMessage

public java.lang.String getMessage()
Overrides the Throwable.getMessage() method and adds additional configuration location information if it is available.

Returns:
The message


Copyright (c) 2000-2003 Anthony Eden. All Rights Reserved.