org.jcoderz.commons.config
Class ConfigurationTypeConversionFailedException

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.ConfigurationTypeConversionFailedException
All Implemented Interfaces:
Serializable, Loggable

public class ConfigurationTypeConversionFailedException
extends ConfigurationServiceRuntimeException

Config value {VALUE} for key {org.jcoderz.commons.config.ConfigurationKey:KEY} could not be converted to type {TYPE}. This exception encapsulates the log message CfgLogMessage.CONFIGURATION_TYPE_CONVERSION_FAILED.

Author:
generated
See Also:
Serialized Form

Constructor Summary
protected ConfigurationTypeConversionFailedException(CfgLogMessage messageInfo)
          Constructor getting an log message info.
protected ConfigurationTypeConversionFailedException(CfgLogMessage messageInfo, Throwable cause)
          Constructor getting an log message info and a root exception.
  ConfigurationTypeConversionFailedException(String value, ConfigurationKey key, String type)
          Constructs a configuration type conversion failed exception with a cause.
  ConfigurationTypeConversionFailedException(String value, ConfigurationKey key, String type, Throwable cause)
          Constructs a configuration type conversion failed exception with a cause.
 
Method Summary
 ConfigurationKey valueOfKey()
          Returns the value of the parameter key.
 String valueOfType()
          Returns the value of the parameter type.
 String valueOfValue()
          Returns the value of the parameter value.
 
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

ConfigurationTypeConversionFailedException

public ConfigurationTypeConversionFailedException(String value,
                                                  ConfigurationKey key,
                                                  String type,
                                                  Throwable cause)
Constructs a configuration type conversion failed exception with a cause.

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

ConfigurationTypeConversionFailedException

public ConfigurationTypeConversionFailedException(String value,
                                                  ConfigurationKey key,
                                                  String type)
Constructs a configuration type conversion failed exception with a cause.

Parameters:
value - The value used in the message.
key - The key used in the message.
type - The type used in the message.

ConfigurationTypeConversionFailedException

protected ConfigurationTypeConversionFailedException(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

ConfigurationTypeConversionFailedException

protected ConfigurationTypeConversionFailedException(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

valueOfValue

public String valueOfValue()
Returns the value of the parameter value.

Returns:
the value of the parameter value.

valueOfKey

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

Returns:
the value of the parameter key.

valueOfType

public String valueOfType()
Returns the value of the parameter type.

Returns:
the value of the parameter type.


Copyright 2007 The jCoderZ Project.