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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2