(file) Return to CIMStatusCode.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

  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 mike   1.1      CIM_ERR_METHOD_NOT_FOUND = 17
138             };
139             
140 kumpf  1.5  PEGASUS_COMMON_LINKAGE const char* cimStatusCodeToString(CIMStatusCode code);
141 chuck  1.7  
142 chuck  1.8  #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
143 kumpf  1.16 /**
144                 <I><B>Experimental Interface</B></I><BR>
145             */
146 kumpf  1.14 PEGASUS_COMMON_LINKAGE String cimStatusCodeToString(
147                 CIMStatusCode code,
148                 const ContentLanguageList &contentLanguages);
149             
150 kumpf  1.16 /**
151                 <I><B>Experimental Interface</B></I><BR>
152             */
153 kumpf  1.14 PEGASUS_COMMON_LINKAGE ContentLanguageList cimStatusCodeToString_Thread(
154                 String & message,
155                 CIMStatusCode code);
156 kumpf  1.18 #endif  //    PEGASUS_USE_EXPERIMENTAL_INTERFACES
157 mike   1.1  
158             PEGASUS_NAMESPACE_END
159             
160             #endif /* Pegasus_CIMStatusCode_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2