CIMStatusCode.h
1 //%LICENSE////////////////////////////////////////////////////////////////
2 //
3 // 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 //
10 // 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 //
17 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
19 //
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // 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 //
29 //
30 //%/////////////////////////////////////////////////////////////////////////////
31 
32 #ifndef Pegasus_CIMStatusCode_h
33 #define Pegasus_CIMStatusCode_h
34 
35 #include <Pegasus/Common/Config.h>
36 #include <Pegasus/Common/Linkage.h>
37 #include <Pegasus/Common/ContentLanguageList.h>
38 
39 PEGASUS_NAMESPACE_BEGIN
40 
45 enum CIMStatusCode
46 {
50  CIM_ERR_SUCCESS = 0,
51 
56  CIM_ERR_FAILED = 1,
57 
61  CIM_ERR_ACCESS_DENIED = 2,
62 
66  CIM_ERR_INVALID_NAMESPACE = 3,
67 
71  CIM_ERR_INVALID_PARAMETER = 4,
72 
76  CIM_ERR_INVALID_CLASS = 5,
77 
81  CIM_ERR_NOT_FOUND = 6,
82 
86  CIM_ERR_NOT_SUPPORTED = 7,
87 
91  CIM_ERR_CLASS_HAS_CHILDREN = 8,
92 
96  CIM_ERR_CLASS_HAS_INSTANCES = 9,
97 
102  CIM_ERR_INVALID_SUPERCLASS = 10,
103 
107  CIM_ERR_ALREADY_EXISTS = 11,
108 
112  CIM_ERR_NO_SUCH_PROPERTY = 12,
113 
117  CIM_ERR_TYPE_MISMATCH = 13,
118 
122  CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED = 14,
123 
127  CIM_ERR_INVALID_QUERY = 15,
128 
132  CIM_ERR_METHOD_NOT_AVAILABLE = 16,
133 
137  CIM_ERR_METHOD_NOT_FOUND = 17,
138  //EXP_PULL_BEGIN
142  CIM_ERR_NAMESPACE_NOT_EMPTY = 20,
148  CIM_ERR_INVALID_ENUMERATION_CONTEXT = 21,
153  CIM_ERR_INVALID_OPERATION_TIMEOUT = 22,
158  CIM_ERR_PULL_HAS_BEEN_ABANDONED = 23,
164  CIM_ERR_PULL_CANNOT_BE_ABANDONED = 24,
169  CIM_ERR_FILTERED_ENUMERATION_NOT_SUPPORTED = 25,
173  CIM_ERR_CONTINUATION_ON_ERROR_NOT_SUPPORTED = 26,
178  CIM_ERR_SERVER_LIMITS_EXCEEDED = 27,
183  CIM_ERR_SERVER_IS_SHUTTING_DOWN = 28
184 
185  //EXP_PULL_END
186 };
187 
188 PEGASUS_COMMON_LINKAGE const char* cimStatusCodeToString(CIMStatusCode code);
189 
190 #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
191 
194 PEGASUS_COMMON_LINKAGE String cimStatusCodeToString(
195  CIMStatusCode code,
196  const ContentLanguageList &contentLanguages);
197 
201 PEGASUS_COMMON_LINKAGE ContentLanguageList cimStatusCodeToString_Thread(
202  String & message,
203  CIMStatusCode code);
204 #endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES
205 
206 PEGASUS_NAMESPACE_END
207 
208 #endif /* Pegasus_CIMStatusCode_h */
Definition: String.h:119
Definition: ContentLanguageList.h:53