(file) Return to ConfigExceptions.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Config

Diff for /pegasus/src/Pegasus/Config/ConfigExceptions.cpp between version 1.13.8.1 and 1.14

version 1.13.8.1, 2013/06/03 22:35:50 version 1.14, 2012/11/29 09:57:28
Line 29 
Line 29 
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #include <Pegasus/Common/StringConversion.h>  #include <stdio.h>
 #include "ConfigExceptions.h" #include "ConfigExceptions.h"
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 /** /**
       MissingCommandLineOptionArgument Exception class
   */
   MissingCommandLineOptionArgument::MissingCommandLineOptionArgument(
       const String& optionName):Exception(
           MessageLoaderParms(
               "Config.ConfigExceptions.MISSING_CMDLINE_OPTION",
               "Missing command line option argument: $0",
               optionName))
   {
   }
   
   /**
     UnrecognizedCommandLineOption Exception class     UnrecognizedCommandLineOption Exception class
 */ */
 UnrecognizedCommandLineOption::UnrecognizedCommandLineOption() UnrecognizedCommandLineOption::UnrecognizedCommandLineOption()
Line 99 
Line 111 
 { {
 } }
  
   /**
       DuplicateOption Exception class
   */
   DuplicateOption::DuplicateOption(const String& name)
       :Exception(
           MessageLoaderParms(
               "Config.ConfigExceptions.DUPLICATE_OPTION",
               "Duplicate option: $0",
               name))
   {
   }
   
   
 ConfigFileSyntaxError::ConfigFileSyntaxError(const String& file, Uint32 line) ConfigFileSyntaxError::ConfigFileSyntaxError(const String& file, Uint32 line)
     :Exception(_formatMessage(file, line))     :Exception(_formatMessage(file, line))
 { {
 } }
  
   
 String ConfigFileSyntaxError::_formatMessage( String ConfigFileSyntaxError::_formatMessage(
     const String& file,     const String& file,
     Uint32 line)     Uint32 line)
 { {
     char buffer[22];      char buffer[32];
     Uint32 n;      sprintf(buffer, "%u", line);
     const char * startNum=Uint32ToString(buffer,line,n);  
  
     MessageLoaderParms parms(     MessageLoaderParms parms(
         "Config.ConfigExceptions.CONFIG_FILE_SYNTAX_ERR",         "Config.ConfigExceptions.CONFIG_FILE_SYNTAX_ERR",
Line 118 
Line 143 
     String result = MessageLoader::getMessage(parms);     String result = MessageLoader::getMessage(parms);
     result.append(file);     result.append(file);
     result.append("(");     result.append("(");
     result.append(startNum,n);      result.append(buffer);
     result.append(")");     result.append(")");
     return result;     return result;
 } }
  
  
 /** /**
       UnrecognizedConfigFileOption Exception class
   */
   UnrecognizedConfigFileOption::UnrecognizedConfigFileOption(const String& name)
       :Exception(
           MessageLoaderParms(
               "Config.ConfigExceptions.UNRECOGNIZED_CONFIG_FILE_OPTION",
               "Unrecognized config file option: $0",
               name))
   {
   }
   
   
   /**
       MissingRequiredOptionValue Exception class
   */
   MissingRequiredOptionValue::MissingRequiredOptionValue(const String& name)
       :Exception(
           MessageLoaderParms(
               "Config.ConfigExceptions.MISSING_REQUIRED_OPTION",
               "Missing required option value: $0",
               name))
   {
   }
   
   
   /**
     UnrecognizedConfigProperty Exception class     UnrecognizedConfigProperty Exception class
 */ */
 UnrecognizedConfigProperty::UnrecognizedConfigProperty(const String& name) UnrecognizedConfigProperty::UnrecognizedConfigProperty(const String& name)


Legend:
Removed from v.1.13.8.1  
changed lines
  Added in v.1.14

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2