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 #include <Pegasus/Common/MessageLoader.h>
|
41 mike 1.1
42 PEGASUS_NAMESPACE_BEGIN
43
|
44 kumpf 1.16 /**
45 The CIMStatusCode enumeration represents the status codes defined in the
46 DMTF Specification for CIM Operations over HTTP.
|
47 mike 1.2 */
|
48 mike 1.1 enum CIMStatusCode
49 {
|
50 kumpf 1.16 /**
51 The operation was successful.
52 */
|
53 mike 1.1 CIM_ERR_SUCCESS = 0,
54
|
55 kumpf 1.16 /**
56 A general error occurred that is not covered by a more specific
57 error code.
|
58 karl 1.10 */
|
59 mike 1.1 CIM_ERR_FAILED = 1,
60
|
61 kumpf 1.16 /**
62 Access to a CIM resource was not available to the client.
|
63 karl 1.10 */
|
64 mike 1.1 CIM_ERR_ACCESS_DENIED = 2,
65
|
66 kumpf 1.16 /**
67 The target namespace does not exist.
|
68 karl 1.10 */
|
69 mike 1.1 CIM_ERR_INVALID_NAMESPACE = 3,
70
|
71 kumpf 1.16 /**
72 One or more parameter values passed to the method were invalid.
|
73 karl 1.10 */
|
74 mike 1.1 CIM_ERR_INVALID_PARAMETER = 4,
75
|
76 kumpf 1.16 /**
77 The specified class does not exist.
|
78 karl 1.10 */
|
79 mike 1.1 CIM_ERR_INVALID_CLASS = 5,
80
|
81 kumpf 1.16 /**
82 The requested object could not be found.
|
83 karl 1.10 */
|
84 mike 1.1 CIM_ERR_NOT_FOUND = 6,
85
|
86 kumpf 1.16 /**
87 The requested operation is not supported.
|
88 karl 1.10 */
|
89 mike 1.1 CIM_ERR_NOT_SUPPORTED = 7,
90
|
91 kumpf 1.16 /**
92 Operation cannot be carried out on this class since it has subclasses.
|
93 karl 1.10 */
|
94 mike 1.1 CIM_ERR_CLASS_HAS_CHILDREN = 8,
95
|
96 kumpf 1.16 /**
97 Operation cannot be carried out on this class since it has instances.
|
98 karl 1.10 */
|
99 mike 1.1 CIM_ERR_CLASS_HAS_INSTANCES = 9,
100
|
101 kumpf 1.16 /**
102 Operation cannot be carried out since the specified superClass does
103 not exist.
|
104 karl 1.10 */
|
105 mike 1.1 CIM_ERR_INVALID_SUPERCLASS = 10,
106
|
107 kumpf 1.16 /**
108 Operation cannot be carried out because an object already exists.
|
109 karl 1.10 */
|
110 mike 1.1 CIM_ERR_ALREADY_EXISTS = 11,
111
|
112 kumpf 1.16 /**
113 The specified property does not exist:
|
114 karl 1.10 */
|
115 mike 1.1 CIM_ERR_NO_SUCH_PROPERTY = 12,
116
|
117 kumpf 1.16 /**
118 The value supplied is incompatible with the type.
|
119 karl 1.10 */
|
120 mike 1.1 CIM_ERR_TYPE_MISMATCH = 13,
121
|
122 kumpf 1.16 /**
123 The query language is not recognized or supported.
|
124 karl 1.10 */
|
125 mike 1.1 CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED = 14,
126
|
127 kumpf 1.16 /**
128 The query is not valid for the specified query language.
|
129 karl 1.10 */
|
130 mike 1.1 CIM_ERR_INVALID_QUERY = 15,
131
|
132 kumpf 1.16 /**
133 The extrinsic method could not be executed.
|
134 karl 1.10 */
|
135 mike 1.1 CIM_ERR_METHOD_NOT_AVAILABLE = 16,
136
|
137 kumpf 1.16 /**
138 The specified extrinsic method does not exist.
|
139 karl 1.10 */
|
140 mike 1.1 CIM_ERR_METHOD_NOT_FOUND = 17
141 };
142
|
143 kumpf 1.5 PEGASUS_COMMON_LINKAGE const char* cimStatusCodeToString(CIMStatusCode code);
|
144 chuck 1.7
|
145 chuck 1.8 #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
|
146 kumpf 1.16 /**
147 <I><B>Experimental Interface</B></I><BR>
148 */
|
149 kumpf 1.14 PEGASUS_COMMON_LINKAGE String cimStatusCodeToString(
150 CIMStatusCode code,
151 const ContentLanguageList &contentLanguages);
152
|
153 kumpf 1.16 /**
154 <I><B>Experimental Interface</B></I><BR>
155 */
|
156 kumpf 1.14 PEGASUS_COMMON_LINKAGE ContentLanguageList cimStatusCodeToString_Thread(
157 String & message,
158 CIMStatusCode code);
|
159 chuck 1.8 #endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES
|
160 mike 1.1
161 PEGASUS_NAMESPACE_END
162
163 #endif /* Pegasus_CIMStatusCode_h */
|