1 martin 1.19 //%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.20 //
|
3 martin 1.19 // Licensed to The Open Group (TOG) under one or more contributor license
4 // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 // this work for additional information regarding copyright ownership.
6 // Each contributor licenses this file to you under the OpenPegasus Open
7 // Source License; you may not use this file except in compliance with the
8 // License.
|
9 martin 1.20 //
|
10 martin 1.19 // Permission is hereby granted, free of charge, to any person obtaining a
11 // copy of this software and associated documentation files (the "Software"),
12 // to deal in the Software without restriction, including without limitation
13 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 // and/or sell copies of the Software, and to permit persons to whom the
15 // Software is furnished to do so, subject to the following conditions:
|
16 martin 1.20 //
|
17 martin 1.19 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
|
19 martin 1.20 //
|
20 martin 1.19 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.20 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.19 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27 martin 1.20 //
|
28 martin 1.19 //////////////////////////////////////////////////////////////////////////
|
29 mike 1.1 //
30 //%/////////////////////////////////////////////////////////////////////////////
31
32 #ifndef Pegasus_CIMStatusCode_h
33 #define Pegasus_CIMStatusCode_h
34
35 #include <Pegasus/Common/Config.h>
|
36 kumpf 1.4 #include <Pegasus/Common/Linkage.h>
|
37 kumpf 1.14 #include <Pegasus/Common/ContentLanguageList.h>
|
38 mike 1.1
39 PEGASUS_NAMESPACE_BEGIN
40
|
41 kumpf 1.16 /**
42 The CIMStatusCode enumeration represents the status codes defined in the
43 DMTF Specification for CIM Operations over HTTP.
|
44 mike 1.2 */
|
45 mike 1.1 enum CIMStatusCode
46 {
|
47 kumpf 1.16 /**
48 The operation was successful.
49 */
|
50 mike 1.1 CIM_ERR_SUCCESS = 0,
51
|
52 kumpf 1.16 /**
53 A general error occurred that is not covered by a more specific
54 error code.
|
55 karl 1.10 */
|
56 mike 1.1 CIM_ERR_FAILED = 1,
57
|
58 kumpf 1.16 /**
59 Access to a CIM resource was not available to the client.
|
60 karl 1.10 */
|
61 mike 1.1 CIM_ERR_ACCESS_DENIED = 2,
62
|
63 kumpf 1.16 /**
64 The target namespace does not exist.
|
65 karl 1.10 */
|
66 mike 1.1 CIM_ERR_INVALID_NAMESPACE = 3,
67
|
68 kumpf 1.16 /**
69 One or more parameter values passed to the method were invalid.
|
70 karl 1.10 */
|
71 mike 1.1 CIM_ERR_INVALID_PARAMETER = 4,
72
|
73 kumpf 1.16 /**
74 The specified class does not exist.
|
75 karl 1.10 */
|
76 mike 1.1 CIM_ERR_INVALID_CLASS = 5,
77
|
78 kumpf 1.16 /**
79 The requested object could not be found.
|
80 karl 1.10 */
|
81 mike 1.1 CIM_ERR_NOT_FOUND = 6,
82
|
83 kumpf 1.16 /**
84 The requested operation is not supported.
|
85 karl 1.10 */
|
86 mike 1.1 CIM_ERR_NOT_SUPPORTED = 7,
87
|
88 kumpf 1.16 /**
89 Operation cannot be carried out on this class since it has subclasses.
|
90 karl 1.10 */
|
91 mike 1.1 CIM_ERR_CLASS_HAS_CHILDREN = 8,
92
|
93 kumpf 1.16 /**
94 Operation cannot be carried out on this class since it has instances.
|
95 karl 1.10 */
|
96 mike 1.1 CIM_ERR_CLASS_HAS_INSTANCES = 9,
97
|
98 kumpf 1.16 /**
99 Operation cannot be carried out since the specified superClass does
100 not exist.
|
101 karl 1.10 */
|
102 mike 1.1 CIM_ERR_INVALID_SUPERCLASS = 10,
103
|
104 kumpf 1.16 /**
105 Operation cannot be carried out because an object already exists.
|
106 karl 1.10 */
|
107 mike 1.1 CIM_ERR_ALREADY_EXISTS = 11,
108
|
109 kumpf 1.16 /**
110 The specified property does not exist:
|
111 karl 1.10 */
|
112 mike 1.1 CIM_ERR_NO_SUCH_PROPERTY = 12,
113
|
114 kumpf 1.16 /**
115 The value supplied is incompatible with the type.
|
116 karl 1.10 */
|
117 mike 1.1 CIM_ERR_TYPE_MISMATCH = 13,
118
|
119 kumpf 1.16 /**
120 The query language is not recognized or supported.
|
121 karl 1.10 */
|
122 mike 1.1 CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED = 14,
123
|
124 kumpf 1.16 /**
125 The query is not valid for the specified query language.
|
126 karl 1.10 */
|
127 mike 1.1 CIM_ERR_INVALID_QUERY = 15,
128
|
129 kumpf 1.16 /**
130 The extrinsic method could not be executed.
|
131 karl 1.10 */
|
132 mike 1.1 CIM_ERR_METHOD_NOT_AVAILABLE = 16,
133
|
134 kumpf 1.16 /**
135 The specified extrinsic method does not exist.
|
136 karl 1.10 */
|
137 karl 1.21 CIM_ERR_METHOD_NOT_FOUND = 17,
138 //EXP_PULL_BEGIN
139 /**
140 The specified Namespace is not empty.
141 */
142 CIM_ERR_NAMESPACE_NOT_EMPTY = 20,
143 /**
144 The enumeration identified by the specified context cannot
145 be found, is in a closed state, does not exist, or is
146 otherwise invalid.
147 */
148 CIM_ERR_INVALID_ENUMERATION_CONTEXT = 21,
149 /**
150 The specified operation timeout is not supported by the CIM
151 Server.
152 */
153 CIM_ERR_INVALID_OPERATION_TIMEOUT = 22,
154 /**
155 The Pull operation has been abandoned due to execution of a
156 concurrent CloseEnumeration operation on the same enumeration
157 */
158 karl 1.21 CIM_ERR_PULL_HAS_BEEN_ABANDONED = 23,
159 /**
160 The attempt to abandon a concurrent Pull operation on the
161 same enumeration failed, the concurrent Pull operation
162 proceeds normally.
163 */
164 CIM_ERR_PULL_CANNOT_BE_ABANDONED = 24,
165 /**
166 Using a filter in the enumeration is not supported by the
167 CIM Server.
168 */
169 CIM_ERR_FILTERED_ENUMERATION_NOT_SUPPORTED = 25,
170 /**
171 * The CIM Server does not support continuation on error.
172 */
173 CIM_ERR_CONTINUATION_ON_ERROR_NOT_SUPPORTED = 26,
174 /**
175 The CIM Server has failed the operation based upon exceeding
176 server limits.
177 */
178 CIM_ERR_SERVER_LIMITS_EXCEEDED = 27,
179 karl 1.21 /**
180 The CIM Server is in the process of shutting down and cannot
181 process the operation at this time.. *
182 */
183 CIM_ERR_SERVER_IS_SHUTTING_DOWN = 28
184
185 //EXP_PULL_END
|
186 mike 1.1 };
187
|
188 kumpf 1.5 PEGASUS_COMMON_LINKAGE const char* cimStatusCodeToString(CIMStatusCode code);
|
189 chuck 1.7
|
190 chuck 1.8 #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
|
191 kumpf 1.16 /**
192 <I><B>Experimental Interface</B></I><BR>
193 */
|
194 kumpf 1.14 PEGASUS_COMMON_LINKAGE String cimStatusCodeToString(
195 CIMStatusCode code,
196 const ContentLanguageList &contentLanguages);
197
|
198 kumpf 1.16 /**
199 <I><B>Experimental Interface</B></I><BR>
200 */
|
201 kumpf 1.14 PEGASUS_COMMON_LINKAGE ContentLanguageList cimStatusCodeToString_Thread(
202 String & message,
203 CIMStatusCode code);
|
204 kumpf 1.18 #endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES
|
205 mike 1.1
206 PEGASUS_NAMESPACE_END
207
208 #endif /* Pegasus_CIMStatusCode_h */
|