org.extex.framework.configuration.exception
Class ConfigurationInvalidConstructorException

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
                  extended by org.extex.framework.configuration.exception.ConfigurationInvalidConstructorException
All Implemented Interfaces:
java.io.Serializable

public class ConfigurationInvalidConstructorException
extends ConfigurationException

This exception is thrown when a dynamically loaded class does not implement an expected interface.

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

Constructor Summary
ConfigurationInvalidConstructorException(java.lang.String className, Configuration config)
          Creates a new object.
 
Method Summary
protected  java.lang.String getText()
          Getter for the text prefix of this ConfigException.
 
Methods inherited from class org.extex.framework.configuration.exception.ConfigurationException
getLocalizedMessage, getLocalizer, getSource
 
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

ConfigurationInvalidConstructorException

public ConfigurationInvalidConstructorException(java.lang.String className,
                                                Configuration config)
Creates a new object.

Parameters:
className - the name of the class
config - the configuration in which the problem occurred or null
Method Detail

getText

protected java.lang.String getText()
Getter for the text prefix of this ConfigException. The text is taken from the resource bundle ConfigurationEception under the key ConfigurationInvalidClassException.Text. The argument {0} is replaced by the name of the missing class as passed to the constructor, or the message of the cause if no class name is present, or the empty string as final fallback.

Overrides:
getText in class ConfigurationException
Returns:
the text