1 karl 1.9 //%2003////////////////////////////////////////////////////////////////////////
|
2 mike 1.1 //
|
3 karl 1.9 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Development
4 // Company, L. P., IBM Corp., The Open Group, Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.;
6 // IBM Corp.; EMC Corporation, The Open Group.
|
7 mike 1.1 //
8 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
9 kumpf 1.3 // of this software and associated documentation files (the "Software"), to
10 // deal in the Software without restriction, including without limitation the
11 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
12 mike 1.1 // sell copies of the Software, and to permit persons to whom the Software is
13 // furnished to do so, subject to the following conditions:
14 //
|
15 kumpf 1.3 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
16 mike 1.1 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
17 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
18 kumpf 1.3 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
19 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
21 mike 1.1 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 //
24 //==============================================================================
25 //
26 // Author: Mike Brasher (mbrasher@bmc.com)
27 //
|
28 kumpf 1.5 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
29 // (carolann_graves@hp.com)
|
30 mike 1.1 //
31 //%/////////////////////////////////////////////////////////////////////////////
32
33 #ifndef Pegasus_CIMStatusCode_h
34 #define Pegasus_CIMStatusCode_h
35
36 #include <Pegasus/Common/Config.h>
|
37 kumpf 1.4 #include <Pegasus/Common/Linkage.h>
|
38 chuck 1.7 #include <Pegasus/Common/ContentLanguages.h> //l10n
39 #include <Pegasus/Common/MessageLoader.h> // l10n
|
40 mike 1.1
41 PEGASUS_NAMESPACE_BEGIN
42
|
43 mike 1.2 /** CIM Status codes defined in the CIM/HTTP standard. These are the valid
44 codes which may be passed on the wire.
45 */
|
46 mike 1.1 enum CIMStatusCode
47 {
|
48 kumpf 1.6 /// Success.
|
49 mike 1.1 CIM_ERR_SUCCESS = 0,
50
|
51 kumpf 1.6 /// A general error occurred that is not covered by a more specific error code.
|
52 mike 1.1
53 CIM_ERR_FAILED = 1,
54
|
55 kumpf 1.6 /// Access to a CIM resource was not available to the client.
|
56 mike 1.1
57 CIM_ERR_ACCESS_DENIED = 2,
58
|
59 kumpf 1.6 /// The target namespace does not exist.
|
60 mike 1.1
61 CIM_ERR_INVALID_NAMESPACE = 3,
62
|
63 kumpf 1.6 /// One or more parameter values passed to the method were invalid.
|
64 mike 1.1
65 CIM_ERR_INVALID_PARAMETER = 4,
66
|
67 kumpf 1.6 /// The specified class does not exist.
|
68 mike 1.1
69 CIM_ERR_INVALID_CLASS = 5,
70
|
71 kumpf 1.6 /// The requested object could not be found.
|
72 mike 1.1
73 CIM_ERR_NOT_FOUND = 6,
74
|
75 kumpf 1.6 /// The requested operation is not supported.
|
76 mike 1.1
77 CIM_ERR_NOT_SUPPORTED = 7,
78
|
79 kumpf 1.6 /// Operation cannot be carried out on this class since it has subclasses.
|
80 mike 1.1
81 CIM_ERR_CLASS_HAS_CHILDREN = 8,
82
|
83 kumpf 1.6 /// Operation cannot be carried out on this class since it has instances.
|
84 mike 1.1
85 CIM_ERR_CLASS_HAS_INSTANCES = 9,
86
|
87 kumpf 1.6 /// Operation cannot be carried out since the specified superClass does not exist.
|
88 mike 1.1
89 CIM_ERR_INVALID_SUPERCLASS = 10,
90
|
91 kumpf 1.6 /// Operation cannot be carried out because an object already exists.
|
92 mike 1.1
93 CIM_ERR_ALREADY_EXISTS = 11,
94
|
95 kumpf 1.6 /// The specified property does not exist:
|
96 mike 1.1
97 CIM_ERR_NO_SUCH_PROPERTY = 12,
98
|
99 kumpf 1.6 /// The value supplied is incompatible with the type.
|
100 mike 1.1
101 CIM_ERR_TYPE_MISMATCH = 13,
102
|
103 kumpf 1.6 /// The query language is not recognized or supported.
|
104 mike 1.1
105 CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED = 14,
106
|
107 kumpf 1.6 /// The query is not valid for the specified query language.
|
108 mike 1.1
109 CIM_ERR_INVALID_QUERY = 15,
110
|
111 kumpf 1.6 /// The extrinsic method could not be executed.
|
112 mike 1.1
113 CIM_ERR_METHOD_NOT_AVAILABLE = 16,
114
|
115 kumpf 1.6 /// The specified extrinsic method does not exist.
|
116 mike 1.1
117 CIM_ERR_METHOD_NOT_FOUND = 17
118 };
119
|
120 chuck 1.8 // l10n - TODO this func should go away - once all Pegasus is globalized
|
121 kumpf 1.5 PEGASUS_COMMON_LINKAGE const char* cimStatusCodeToString(CIMStatusCode code);
|
122 chuck 1.7
|
123 chuck 1.8 #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
|
124 chuck 1.7 // l10n
125 PEGASUS_COMMON_LINKAGE String cimStatusCodeToString(CIMStatusCode code,
|
126 chuck 1.8 const ContentLanguages &contentLanguages);
|
127 chuck 1.7
128 // l10n
|
129 chuck 1.8 PEGASUS_COMMON_LINKAGE ContentLanguages cimStatusCodeToString_Thread(String & message, CIMStatusCode code);
130 #endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES
|
131 mike 1.1
132 PEGASUS_NAMESPACE_END
133
134 #endif /* Pegasus_CIMStatusCode_h */
|