org.jcoderz.commons.config
Class ConfigurationValueNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jcoderz.commons.BaseRuntimeException
                  extended by org.jcoderz.commons.config.ConfigurationServiceRuntimeException
                      extended by org.jcoderz.commons.config.ConfigurationValueNotFoundException
All Implemented Interfaces:
Serializable, Loggable

public class ConfigurationValueNotFoundException
extends ConfigurationServiceRuntimeException

Could not read config value for {KEY}. This exception encapsulates the log message CfgLogMessage.CONFIGURATION_VALUE_NOT_FOUND.

Author:
generated
See Also:
Serialized Form

Constructor Summary
protected ConfigurationValueNotFoundException(CfgLogMessage messageInfo)
          Constructor getting an log message info.
protected ConfigurationValueNotFoundException(CfgLogMessage messageInfo, Throwable cause)
          Constructor getting an log message info and a root exception.
  ConfigurationValueNotFoundException(String key)
          Constructs a configuration value not found exception with a cause.
  ConfigurationValueNotFoundException(String key, Throwable cause)
          Constructs a configuration value not found exception with a cause.
 
Method Summary
 String valueOfKey()
          Returns the value of the parameter key.
 
Methods inherited from class org.jcoderz.commons.BaseRuntimeException
addParameter, getCause, getEventTime, getInstanceId, getLogMessageInfo, getMessage, getNodeId, getParameter, getParameterNames, getSourceClass, getSourceMethod, getThreadId, getThreadName, getTrackingNumber, initCause, log, logCreation, toDetailedString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationValueNotFoundException

public ConfigurationValueNotFoundException(String key,
                                           Throwable cause)
Constructs a configuration value not found exception with a cause.

Parameters:
key - The key used in the message.
cause - the cause of this exception.

ConfigurationValueNotFoundException

public ConfigurationValueNotFoundException(String key)
Constructs a configuration value not found exception with a cause.

Parameters:
key - The key used in the message.

ConfigurationValueNotFoundException

protected ConfigurationValueNotFoundException(CfgLogMessage messageInfo)
Constructor getting an log message info. This constructor is for generated exceptions internal use only.

Parameters:
messageInfo - the log message info for this exception

ConfigurationValueNotFoundException

protected ConfigurationValueNotFoundException(CfgLogMessage messageInfo,
                                              Throwable cause)
Constructor getting an log message info and a root exception. This constructor is for generated exceptions internal use only.

Parameters:
messageInfo - the log message info for this exception
cause - the problem that caused this exception to be thrown
Method Detail

valueOfKey

public String valueOfKey()
Returns the value of the parameter key.

Returns:
the value of the parameter key.


Copyright 2007 The jCoderZ Project.