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