(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.20 and 1.21

version 1.20, 2001/07/07 13:03:11 version 1.21, 2001/07/10 06:43:25
Line 167 
Line 167 
 // //
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
  
 static const char* _cimMessages[] =  
 {  
     "SUCCESS: successful",  
   
     "FAILED: A general error occurred that is not covered by a more specific "  
     "error code",  
   
     "ACCESS_DENIED: Access to a CIM resource was not available to the client",  
   
     "INVALID_NAMESPACE: The target namespace does not exist",  
   
     "INVALID_PARAMETER: One or more parameter values passed to the method "  
     "were invalid",  
   
     "INVALID_CLASS: The specified class does not exist",  
   
     "NOT_FOUND: The requested object could not be found",  
   
     "NOT_SUPPORTED: The requested operation is not supported",  
   
     "CLASS_HAS_CHILDREN: Operation cannot be carried out on this class since "  
     "it has subclasses",  
   
     "CLASS_HAS_INSTANCES: Operation cannot be carried out on this class since "  
     "it has instances",  
   
     "INVALID_SUPERCLASS: Operation cannot be carried out since the specified "  
     "superclass does not exist",  
   
     "ALREADY_EXISTS: Operation cannot be carried out because an object already "  
     "exists",  
   
     "NO_SUCH_PROPERTY: The specified property does not exist",  
   
     "TYPE_MISMATCH: The value supplied is incompatible with the type",  
   
     "QUERY_LANGUAGE_NOT_SUPPORTED: The query language is not recognized or "  
     "supported",  
   
     "INVALID_QUERY: The query is not valid for the specified query language",  
   
     "METHOD_NOT_AVAILABLE: The extrinsic method could not be executed",  
   
     "METHOD_NOT_FOUND: The specified extrinsic method does not exist"  
 };  
   
 static String _makeCIMExceptionMessage( static String _makeCIMExceptionMessage(
     CIMException::Code code,      CIMStatusCode code,
     const char* file,     const char* file,
     Uint32 line,     Uint32 line,
     const String& extraMessage)     const String& extraMessage)
Line 226 
Line 180 
     tmp.append(buffer);     tmp.append(buffer);
     tmp.append("): ");     tmp.append("): ");
  
     tmp.append(_cimMessages[Uint32(code)]);      tmp.append(CIMStatusCodeToString(code));
     tmp.append(": \"");     tmp.append(": \"");
     tmp.append(extraMessage);     tmp.append(extraMessage);
     tmp.append("\"");     tmp.append("\"");
Line 234 
Line 188 
 } }
  
 CIMException::CIMException( CIMException::CIMException(
     CIMException::Code code,      CIMStatusCode code,
     const char* file,     const char* file,
     Uint32 line,     Uint32 line,
     const String& extraMessage)     const String& extraMessage)
Line 244 
Line 198 
  
 } }
  
 const char* CIMException::codeToString(CIMException::Code code)  
 {  
     return _cimMessages[Uint32(code)];  
 }  
   
 void ThrowUnitializedHandle() void ThrowUnitializedHandle()
 { {
     throw UnitializedHandle();     throw UnitializedHandle();


Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2