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

  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 mike  1.1 
 37           PEGASUS_NAMESPACE_BEGIN
 38           
 39 mike  1.2 /** CIM Status codes defined in the CIM/HTTP standard. These are the valid
 40               codes which may be passed on the wire.
 41           */
 42 mike  1.1 enum CIMStatusCode
 43           {
 44 kumpf 1.6     /// Success.
 45 mike  1.1     CIM_ERR_SUCCESS = 0,
 46           
 47 kumpf 1.6     /// A general error occurred that is not covered by a more specific error code.
 48 mike  1.1 
 49               CIM_ERR_FAILED = 1,
 50           
 51 kumpf 1.6     /// Access to a CIM resource was not available to the client.
 52 mike  1.1 
 53               CIM_ERR_ACCESS_DENIED = 2,
 54           
 55 kumpf 1.6     /// The target namespace does not exist.
 56 mike  1.1 
 57               CIM_ERR_INVALID_NAMESPACE = 3,
 58           
 59 kumpf 1.6     /// One or more parameter values passed to the method were invalid.
 60 mike  1.1 
 61               CIM_ERR_INVALID_PARAMETER = 4,
 62           
 63 kumpf 1.6     /// The specified class does not exist.
 64 mike  1.1 
 65               CIM_ERR_INVALID_CLASS = 5,
 66           
 67 kumpf 1.6     /// The requested object could not be found.
 68 mike  1.1 
 69               CIM_ERR_NOT_FOUND = 6,
 70           
 71 kumpf 1.6     /// The requested operation is not supported.
 72 mike  1.1 
 73               CIM_ERR_NOT_SUPPORTED = 7,
 74           
 75 kumpf 1.6     /// Operation cannot be carried out on this class since it has subclasses.
 76 mike  1.1 
 77               CIM_ERR_CLASS_HAS_CHILDREN = 8,
 78           
 79 kumpf 1.6     /// Operation cannot be carried out on this class since it has instances.
 80 mike  1.1 
 81               CIM_ERR_CLASS_HAS_INSTANCES = 9,
 82           
 83 kumpf 1.6     /// Operation cannot be carried out since the specified superClass does not exist.
 84 mike  1.1 
 85               CIM_ERR_INVALID_SUPERCLASS = 10,
 86           
 87 kumpf 1.6     /// Operation cannot be carried out because an object already exists.
 88 mike  1.1 
 89               CIM_ERR_ALREADY_EXISTS = 11,
 90           
 91 kumpf 1.6     /// The specified property does not exist:
 92 mike  1.1 
 93               CIM_ERR_NO_SUCH_PROPERTY = 12,
 94           
 95 kumpf 1.6     /// The value supplied is incompatible with the type.
 96 mike  1.1 
 97               CIM_ERR_TYPE_MISMATCH = 13,
 98           
 99 kumpf 1.6     /// The query language is not recognized or supported.
100 mike  1.1 
101               CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED = 14,
102           
103 kumpf 1.6     /// The query is not valid for the specified query language.
104 mike  1.1 
105               CIM_ERR_INVALID_QUERY = 15,
106           
107 kumpf 1.6     /// The extrinsic method could not be executed.
108 mike  1.1 
109               CIM_ERR_METHOD_NOT_AVAILABLE = 16,
110           
111 kumpf 1.6     /// The specified extrinsic method does not exist.
112 mike  1.1 
113               CIM_ERR_METHOD_NOT_FOUND = 17
114           };
115           
116 kumpf 1.5 PEGASUS_COMMON_LINKAGE const char* cimStatusCodeToString(CIMStatusCode code);
117 mike  1.1 
118           PEGASUS_NAMESPACE_END
119           
120           #endif /* Pegasus_CIMStatusCode_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2