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

Diff for /pegasus/src/Pegasus/Common/Exception.cpp between version 1.28 and 1.29

version 1.28, 2002/03/08 03:51:49 version 1.29, 2002/03/09 01:17:10
Line 24 
Line 24 
 // //
 // Modified By: Nag Boranna (nagaraja_boranna@hp.com) // Modified By: Nag Boranna (nagaraja_boranna@hp.com)
 // //
 // Modified By:  // Modified By: Jenny Yu (jenny_yu@am.exch.hp.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 206 
Line 206 
 // //
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
  
   //
   // Creates a message without source file name and line number.
   //
   static String _makeCIMExceptionMessage(
       CIMStatusCode code,
       const String& extraMessage)
   {
       String tmp;
       tmp.append(CIMStatusCodeToString(code));
       tmp.append(": \"");
       tmp.append(extraMessage);
       tmp.append("\"");
       return tmp;
   }
   
   //
   // Creates a message with source file name and line number.
   //
 static String _makeCIMExceptionMessage( static String _makeCIMExceptionMessage(
     CIMStatusCode code,     CIMStatusCode code,
     const char* file,     const char* file,
Line 226 
Line 244 
     return tmp;     return tmp;
 } }
  
   //
   // Returns a message string specifically for tracing.
   //
   String CIMException::getTraceMessage()
   {
       String traceMsg =
           _makeCIMExceptionMessage(_code, _file, _line, _extraMessage);
   
       return traceMsg;
   }
   
 CIMException::CIMException( CIMException::CIMException(
     CIMStatusCode code,     CIMStatusCode code,
     const char* file,     const char* file,
     Uint32 line,     Uint32 line,
     const String& extraMessage)     const String& extraMessage)
     : Exception(_makeCIMExceptionMessage(code, file, line, extraMessage)),      :
     _code(code)  #ifdef DEBUG_CIMEXCEPTION
       Exception(_makeCIMExceptionMessage(code, file, line, extraMessage)),
   #else
       Exception(_makeCIMExceptionMessage(code, extraMessage)),
   #endif
       _code(code),
       _file(file),
       _line(line),
       _extraMessage(extraMessage)
 { {
  
 } }


Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2