org.extex.framework.configuration.exception
Class ConfigurationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.extex.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.RuntimeException

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

Version:
$Revision: 6131 $
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 source)
          Creates a new object.
ConfigurationException(java.lang.String message, java.lang.Throwable cause)
          Creates a new object.
 
Method Summary
 java.lang.String getLocalizedMessage()
          Getter for the localized message of this Exception.
protected  Localizer getLocalizer()
          Getter for localizer.
 java.lang.String getSource()
          Getter for source.
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 source)
Creates a new object.

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

ConfigurationException

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

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

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().

Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
the message

getLocalizer

protected Localizer getLocalizer()
Getter for localizer.

Returns:
the localizer.

getSource

public java.lang.String getSource()
Getter for source.

Returns:
the source

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