org.apache.avalon.framework.configuration
Class ConfigurationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.avalon.framework.CascadingException
              extended byorg.apache.avalon.framework.configuration.ConfigurationException
All Implemented Interfaces:
CascadingThrowable, java.io.Serializable

public class ConfigurationException
extends CascadingException

Thrown when a Configurable component cannot be configured properly, or if a value cannot be retrieved properly.

Version:
$Id: ConfigurationException.java 55776 2004-10-28 04:36:25Z leif $
Author:
Avalon Development Team
See Also:
Serialized Form

Constructor Summary
ConfigurationException(Configuration config)
          Construct a new ConfigurationException instance.
ConfigurationException(java.lang.String message)
          Construct a new ConfigurationException instance.
ConfigurationException(java.lang.String message, Configuration config)
          Construct a new ConfigurationException instance.
ConfigurationException(java.lang.String message, Configuration config, java.lang.Throwable throwable)
          Construct a new ConfigurationException instance.
ConfigurationException(java.lang.String message, java.lang.Throwable throwable)
          Construct a new ConfigurationException instance.
 
Method Summary
 java.lang.String getMessage()
           
 Configuration getOffendingConfiguration()
           
 
Methods inherited from class org.apache.avalon.framework.CascadingException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, 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

ConfigurationException

public ConfigurationException(Configuration config)
Construct a new ConfigurationException instance.

Parameters:
config - The offending configuration object

ConfigurationException

public ConfigurationException(java.lang.String message)
Construct a new ConfigurationException instance.

Parameters:
message - The detail message for this exception.

ConfigurationException

public ConfigurationException(java.lang.String message,
                              java.lang.Throwable throwable)
Construct a new ConfigurationException instance.

Parameters:
message - The detail message for this exception.
throwable - the root cause of the exception

ConfigurationException

public ConfigurationException(java.lang.String message,
                              Configuration config)
Construct a new ConfigurationException instance.

Parameters:
message - The detail message for this exception.
config - The configuration object

ConfigurationException

public ConfigurationException(java.lang.String message,
                              Configuration config,
                              java.lang.Throwable throwable)
Construct a new ConfigurationException instance.

Parameters:
message - The detail message for this exception.
throwable - the root cause of the exception
Method Detail

getOffendingConfiguration

public Configuration getOffendingConfiguration()

getMessage

public java.lang.String getMessage()


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.