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