Class ConfigurationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.avalon.framework.CascadingException
-
- org.apache.avalon.framework.configuration.ConfigurationException
-
- All Implemented Interfaces:
java.io.Serializable
,CascadingThrowable
public class ConfigurationException extends CascadingException
Thrown when aConfigurable
component cannot be configured properly, or if a value cannot be retrieved properly.- Version:
- $Id: ConfigurationException.java 55776 2004-10-27 23:36:25 -0500 (Wed, 27 Oct 2004) leif $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Configuration
m_config
-
Constructor Summary
Constructors Constructor Description ConfigurationException(java.lang.String message)
Construct a newConfigurationException
instance.ConfigurationException(java.lang.String message, java.lang.Throwable throwable)
Construct a newConfigurationException
instance.ConfigurationException(java.lang.String message, Configuration config)
Construct a newConfigurationException
instance.ConfigurationException(java.lang.String message, Configuration config, java.lang.Throwable throwable)
Construct a newConfigurationException
instance.ConfigurationException(Configuration config)
Construct a newConfigurationException
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
Configuration
getOffendingConfiguration()
-
Methods inherited from class org.apache.avalon.framework.CascadingException
getCause
-
-
-
-
Field Detail
-
m_config
private final Configuration m_config
-
-
Constructor Detail
-
ConfigurationException
public ConfigurationException(Configuration config)
Construct a newConfigurationException
instance.- Parameters:
config
- The offending configuration object
-
ConfigurationException
public ConfigurationException(java.lang.String message)
Construct a newConfigurationException
instance.- Parameters:
message
- The detail message for this exception.
-
ConfigurationException
public ConfigurationException(java.lang.String message, java.lang.Throwable throwable)
Construct a newConfigurationException
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 newConfigurationException
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 newConfigurationException
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()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-