de.dante.util.framework.configuration.exception
Class ConfigurationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byde.dante.util.framework.configuration.exception.ConfigurationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConfigurationClassNotFoundException, ConfigurationIllegalAccessException, ConfigurationInstantiationException, ConfigurationInvalidClassException, ConfigurationInvalidConstructorException, ConfigurationInvalidNameException, ConfigurationInvalidResourceException, ConfigurationIOException, ConfigurationMissingAttributeException, ConfigurationMissingException, ConfigurationNoSuchMethodException, ConfigurationNotFoundException, ConfigurationSyntaxException, ConfigurationUnsupportedEncodingException, ConfigurationWrapperException, MissingResourceFinderException, NoTokenStreamFactoryException, NoTypesetterException

public abstract class ConfigurationException
extends java.lang.Exception

This exception is thrown when a problem in the configuration has been detected.

Version:
$Revision: 1.3 $
Author:
Gerd Neugebauer
See Also:
Serialized Form

Constructor Summary
ConfigurationException(java.lang.String message)
          Creates a new object.
ConfigurationException(java.lang.String message, java.lang.String theSource)
          Creates a new object.
ConfigurationException(java.lang.String message, java.lang.Throwable theCause)
          Creates a new object.
 
Method Summary
 java.lang.String getLocalizedMessage()
          Getter for the localized message of this Exception.
protected  Localizer getLocalizer()
          Getter for localizer.
protected  java.lang.String getText()
          Getter for the text prefix of this ConfigurationException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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 object.

Parameters:
message - the message string

ConfigurationException

public ConfigurationException(java.lang.String message,
                              java.lang.String theSource)
Creates a new object.

Parameters:
message - the message string
theSource - the name of the file causing this error

ConfigurationException

public ConfigurationException(java.lang.String message,
                              java.lang.Throwable theCause)
Creates a new object.

Parameters:
message - message the message string
theCause - the next Throwable in the list
Method Detail

getLocalizer

protected Localizer getLocalizer()
Getter for localizer.

Returns:
the localizer.

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Getter for the localized message of this Exception. The text is taken from the resource bundle ConfigurationEception The key depends on the further information present:

ConfigurationException.FormatCauseMessageLocation is used when a cause, a message, and a location are present. The arguments {1}, {2}, and {3} are set respectively.

ConfigurationException.FormatCauseLocation is used when a cause and a location are present. The arguments {1} and {2} are set respectively.

ConfigurationException.FormatCauseMessage is used when a cause and a message are present. The arguments {1} and {2} are set respectively.

ConfigurationException.FormatCause is used when a cause is present. The argument {1} is set respectively.

ConfigurationException.FormatMessageLocation is used when a message and a location are present. The arguments {1} and {2} are set respectively.

ConfigurationException.FormatMessage is used when a message is present. The argument {1} is set respectively.

ConfigurationException.FormatLocation is used when a location is present. The argument {1} is set respectively.

The arguments {0} is always replaced by the text from getText().

Returns:
the message

getText

protected java.lang.String getText()
Getter for the text prefix of this ConfigurationException. The text is taken from the resource bundle ConfigurationEception under the key ConfigurationException.Text.

Returns:
the text