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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2