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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2