com.mucommander.conf
Class ConfigurationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.mucommander.conf.ConfigurationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConfigurationFormatException, ConfigurationStructureException, ReaderConfigurationException, SourceConfigurationException, WriterConfigurationException

public class ConfigurationException
extends java.lang.Exception

Encapsulates a general configuration error.

This class can contain basic error information from either the com.mucommander.conf API or the application. Application writers can subclass it to provide additional functionality. Different classes of the com.mucommander.conf API may throw this exception or any exception subclassed from it.

If the application needs to pass through other types of exceptions, it must wrap them in a ConfigurationException or an exception derived from it.

Author:
Nicolas Rinaudo
See Also:
Serialized Form

Constructor Summary
ConfigurationException(java.lang.String message)
          Creates a new configuration exception.
ConfigurationException(java.lang.String message, java.lang.Throwable cause)
          Creates a new configuration exception from an existing exception.
ConfigurationException(java.lang.Throwable cause)
          Creates a new configuration exception wrapping an existing exception.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

ConfigurationException

public ConfigurationException(java.lang.String message)
Creates a new configuration exception.

Parameters:
message - the error message.

ConfigurationException

public ConfigurationException(java.lang.Throwable cause)
Creates a new configuration exception wrapping an existing exception.

The existing exception will be embedded in the new one, and its message will become the default message for the ConfigurationException.

Parameters:
cause - the exception to be wrapped in a ConfigurationException.

ConfigurationException

public ConfigurationException(java.lang.String message,
                              java.lang.Throwable cause)
Creates a new configuration exception from an existing exception.

The existing exception will be embedded in the new one, but the new exception will have its own message.

Parameters:
message - the detail message.
cause - the exception to be wrapped in a ConfigurationException.


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard