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

 1 mike  1.1 //%/////////////////////////////////////////////////////////////////////////////
 2           //
 3 kumpf 1.3 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
 4           // The Open Group, Tivoli Systems
 5 mike  1.1 //
 6           // Permission is hereby granted, free of charge, to any person obtaining a copy
 7 kumpf 1.3 // of this software and associated documentation files (the "Software"), to
 8           // deal in the Software without restriction, including without limitation the
 9           // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 mike  1.1 // sell copies of the Software, and to permit persons to whom the Software is
11           // furnished to do so, subject to the following conditions:
12           // 
13 kumpf 1.3 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
14 mike  1.1 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
15           // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
16 kumpf 1.3 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
17           // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18           // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19 mike  1.1 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20           // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21           //
22           //==============================================================================
23           //
24           // Author: Mike Brasher (mbrasher@bmc.com)
25           //
26           // Modified By:
27           //
28           //%/////////////////////////////////////////////////////////////////////////////
29           
30           #include "CIMStatusCode.h"
31           
32           PEGASUS_NAMESPACE_BEGIN
33           
34           static const char* _cimMessages[] =
35           {
36               "CIM_ERR_SUCCESS: successful",
37           
38               "CIM_ERR_FAILED: A general error occurred that is not covered by a more specific "
39               "error code",
40 mike  1.1 
41               "CIM_ERR_ACCESS_DENIED: Access to a CIM resource was not available to the client",
42           
43               "CIM_ERR_INVALID_NAMESPACE: The target namespace does not exist",
44           
45               "CIM_ERR_INVALID_PARAMETER: One or more parameter values passed to the method "
46               "were invalid",
47           
48               "CIM_ERR_INVALID_CLASS: The specified class does not exist",
49           
50               "CIM_ERR_NOT_FOUND: The requested object could not be found",
51           
52               "CIM_ERR_NOT_SUPPORTED: The requested operation is not supported",
53           
54               "CIM_ERR_CLASS_HAS_CHILDREN: Operation cannot be carried out on this class since "
55               "it has subclasses",
56           
57               "CIM_ERR_CLASS_HAS_INSTANCES: Operation cannot be carried out on this class since "
58               "it has instances",
59           
60               "CIM_ERR_INVALID_SUPERCLASS: Operation cannot be carried out since the specified "
61 mike  1.1     "superclass does not exist",
62           
63               "CIM_ERR_ALREADY_EXISTS: Operation cannot be carried out because an object already "
64               "exists",
65           
66               "CIM_ERR_NO_SUCH_PROPERTY: The specified property does not exist",
67           
68               "CIM_ERR_TYPE_MISMATCH: The value supplied is incompatible with the type",
69           
70               "CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED: The query language is not recognized or "
71               "supported",
72           
73               "CIM_ERR_INVALID_QUERY: The query is not valid for the specified query language",
74           
75               "CIM_ERR_METHOD_NOT_AVAILABLE: The extrinsic method could not be executed",
76           
77               "CIM_ERR_METHOD_NOT_FOUND: The specified extrinsic method does not exist"
78           };
79           
80           const char* CIMStatusCodeToString(CIMStatusCode code)
81           {
82 mike  1.1     if (Uint32(code) < CIM_ERR_METHOD_NOT_FOUND)
83           	return _cimMessages[Uint32(code)];
84           
85 kumpf 1.2     return "Unrecognized CIM status code";
86 mike  1.1 }
87           
88           PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2