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

Diff for /pegasus/src/Pegasus/Common/InternalException.cpp between version 1.24 and 1.29.4.1

version 1.24, 2007/02/06 19:05:35 version 1.29.4.1, 2008/07/01 15:17:59
Line 53 
Line 53 
     _rep->message.append("): ");     _rep->message.append("): ");
     _rep->message.append(message);     _rep->message.append(message);
  
     PEG_TRACE_STRING(TRC_DISCARDED_DATA, Tracer::LEVEL2, _rep->message);      PEG_TRACE_STRING(TRC_DISCARDED_DATA, Tracer::LEVEL1, _rep->message);
 } }
  
 AssertionFailureException::~AssertionFailureException() AssertionFailureException::~AssertionFailureException()
Line 81 
Line 81 
 const char BadQualifierType::KEY[] = const char BadQualifierType::KEY[] =
     "Common.InternalException.BAD_QUALIFIER_TYPE";     "Common.InternalException.BAD_QUALIFIER_TYPE";
  
 const char ClassAlreadyResolved::MSG[] =  
     "attempt to resolve a class that is already resolved: $0";  
 const char ClassAlreadyResolved::KEY[] =  
     "Common.InternalException.CLASS_ALREADY_RESOLVED";  
   
 const char ClassNotResolved::MSG[] = "class is not yet resolved: $0";  
 const char ClassNotResolved::KEY[] =  
     "Common.InternalException.CLASS_NOT_RESOLVED";  
   
 const char InstanceAlreadyResolved::MSG[] =  
     "attempted to resolve a instance that is already resolved";  
 const char InstanceAlreadyResolved::KEY[] =  
     "Common.InternalException.INSTANCE_ALREADY_RESOLVED";  
   
 const char InstantiatedAbstractClass::MSG[] = const char InstantiatedAbstractClass::MSG[] =
     "attempted to instantiate an abstract class $0";     "attempted to instantiate an abstract class $0";
 const char InstantiatedAbstractClass::KEY[] = const char InstantiatedAbstractClass::KEY[] =
Line 142 
Line 128 
 const char StackOverflow::MSG[] = "stack overflow"; const char StackOverflow::MSG[] = "stack overflow";
 const char StackOverflow::KEY[] = "Common.InternalException.STACK_OVERFLOW"; const char StackOverflow::KEY[] = "Common.InternalException.STACK_OVERFLOW";
  
 const char BadFormat::MSG[] = "bad format passed to Formatter::format()";  
 const char BadFormat::KEY[] = "Common.InternalException.BAD_FORMAT";  
   
 const char BadlyFormedCGIQueryString::MSG[] = "badly formed CGI query string";  
 const char BadlyFormedCGIQueryString::KEY[] =  
     "Common.InternalException.BADLY_FORMED_CGI_QUERY_STRING";  
   
 const char DynamicLoadFailed::MSG[] = "load of dynamic library failed: $0"; const char DynamicLoadFailed::MSG[] = "load of dynamic library failed: $0";
 const char DynamicLoadFailed::KEY[] = const char DynamicLoadFailed::KEY[] =
     "Common.InternalException.DYNAMIC_LOAD_FAILED";     "Common.InternalException.DYNAMIC_LOAD_FAILED";
Line 210 
Line 189 
     tmp.append(cimStatusCodeToString(code));     tmp.append(cimStatusCodeToString(code));
     if (message != String::EMPTY)     if (message != String::EMPTY)
     {     {
         tmp.append(": \"");          tmp.append(": ");
         tmp.append(message);         tmp.append(message);
         tmp.append("\"");  
     }     }
     return tmp;     return tmp;
 } }
Line 229 
Line 207 
     tmp = cimStatusCodeToString(code, contentLanguages);     tmp = cimStatusCodeToString(code, contentLanguages);
     if (message != String::EMPTY)     if (message != String::EMPTY)
     {     {
         tmp.append(": \"");          tmp.append(": ");
         tmp.append(message);         tmp.append(message);
         tmp.append("\"");  
     }     }
     return tmp;     return tmp;
 } }
Line 247 
Line 224 
     tmp = cimMessage;     tmp = cimMessage;
     if (extraMessage != String::EMPTY)     if (extraMessage != String::EMPTY)
     {     {
         tmp.append(": \"");          tmp.append(": ");
         tmp.append(extraMessage);         tmp.append(extraMessage);
         tmp.append("\"");  
     }     }
     return tmp;     return tmp;
 } }
Line 266 
Line 242 
     String tmp = file;     String tmp = file;
     tmp.append("(");     tmp.append("(");
     char buffer[32];     char buffer[32];
     sprintf(buffer, "%d", line);      sprintf(buffer, "%u", line);
     tmp.append(buffer);     tmp.append(buffer);
     tmp.append("): ");     tmp.append("): ");
     tmp.append(_makeCIMExceptionDescription(code, message));     tmp.append(_makeCIMExceptionDescription(code, message));
Line 285 
Line 261 
     rep->file = file;     rep->file = file;
     rep->line = line;     rep->line = line;
  
     // Localize the cim message from the code.  Use the language of      // Get the cim message from the code.  Ignore the content languages from
     // the current thread.      // this operation, since the cimMessage string is only localized when the
     rep->contentLanguages = cimStatusCodeToString_Thread(rep->cimMessage, code);      // code is invalid.
       cimStatusCodeToString_Thread(rep->cimMessage, code);
 } }
  
 TraceableCIMException::TraceableCIMException( TraceableCIMException::TraceableCIMException(
Line 302 
Line 279 
     rep->file = file;     rep->file = file;
     rep->line = line;     rep->line = line;
  
     // Localize the cim message from the code.  Use the language of      // Get the cim message from the code.  Ignore the content languages from
     // the current thread.      // this operation, since the cimMessage string is only localized when the
     rep->contentLanguages = cimStatusCodeToString_Thread(rep->cimMessage, code);      // code is invalid.
       cimStatusCodeToString_Thread(rep->cimMessage, code);
 } }
  
 TraceableCIMException::TraceableCIMException( TraceableCIMException::TraceableCIMException(
Line 497 
Line 475 
  
 //============================================================================== //==============================================================================
 // //
 // ClassAlreadyResolved  
 //  
 //==============================================================================  
   
 ClassAlreadyResolved::ClassAlreadyResolved(const String& className)  
     : Exception(MessageLoaderParms(  
           ClassAlreadyResolved::KEY,  
           ClassAlreadyResolved::MSG,  
           className))  
 {  
 }  
   
 ClassAlreadyResolved::~ClassAlreadyResolved()  
 {  
 }  
   
 //==============================================================================  
 //  
 // ClassNotResolved  
 //  
 //==============================================================================  
   
 ClassNotResolved::ClassNotResolved(const String& className)  
     : Exception(MessageLoaderParms(  
           ClassNotResolved::KEY,  
           ClassNotResolved::MSG,  
           className))  
 {  
 }  
   
 ClassNotResolved::~ClassNotResolved()  
 {  
 }  
   
 //==============================================================================  
 //  
 // InstanceAlreadyResolved  
 //  
 //==============================================================================  
   
 InstanceAlreadyResolved::InstanceAlreadyResolved()  
     : Exception(MessageLoaderParms(  
           InstanceAlreadyResolved::KEY,  
           InstanceAlreadyResolved::MSG))  
 {  
 }  
   
 InstanceAlreadyResolved::~InstanceAlreadyResolved()  
 {  
 }  
   
 //==============================================================================  
 //  
 // InstantiatedAbstractClass // InstantiatedAbstractClass
 // //
 //============================================================================== //==============================================================================
Line 778 
Line 703 
  
 //============================================================================== //==============================================================================
 // //
 // BadFormat  
 //  
 //==============================================================================  
   
 BadFormat::BadFormat()  
     : Exception(MessageLoaderParms(BadFormat::KEY, BadFormat::MSG))  
 {  
 }  
   
 BadFormat::~BadFormat()  
 {  
 }  
   
 //==============================================================================  
 //  
 // BadlyFormedCGIQueryString  
 //  
 //==============================================================================  
   
 BadlyFormedCGIQueryString::BadlyFormedCGIQueryString()  
     : Exception(MessageLoaderParms(BadFormat::KEY, BadFormat::MSG))  
 {  
 }  
   
 BadlyFormedCGIQueryString::~BadlyFormedCGIQueryString()  
 {  
 }  
   
 //==============================================================================  
 //  
 // DynamicLoadFailed // DynamicLoadFailed
 // //
 //============================================================================== //==============================================================================
Line 1013 
Line 908 
 { {
 } }
  
   void ThrowUninitializedObjectException()
   {
       throw UninitializedObjectException();
   }
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.24  
changed lines
  Added in v.1.29.4.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2