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

  1 mike  1.2 //%/////////////////////////////////////////////////////////////////////////////
  2           //
  3 kumpf 1.12 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
  4            // The Open Group, Tivoli Systems
  5 mike  1.2  //
  6            // Permission is hereby granted, free of charge, to any person obtaining a copy
  7            // 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            // 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 kumpf 1.12 // 
 13 mike  1.2  // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 14            // 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            // 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            // 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: Chip Vincent (cvincent@us.ibm.com)
 25            //
 26            // Modified By:
 27            //
 28            //%/////////////////////////////////////////////////////////////////////////////
 29            
 30            #ifndef Pegasus_ProviderException_h
 31            #define Pegasus_ProviderException_h
 32            
 33            #include <Pegasus/Common/Config.h>
 34 mike  1.2  #include <Pegasus/Common/Exception.h>
 35            
 36            PEGASUS_NAMESPACE_BEGIN
 37            
 38            class OperationFailure : public CIMException
 39            {
 40            public:
 41 kumpf 1.11     OperationFailure(const String & message) : CIMException(CIM_ERR_FAILED, message)
 42                {
 43                }
 44            
 45            protected:
 46 kumpf 1.10     OperationFailure(const CIMStatusCode code, const String & message) : CIMException(code, message)
 47 chip  1.8      {
 48                }
 49 mike  1.2  };
 50            
 51            class NotSupported : public OperationFailure
 52            {
 53            public:
 54 chip  1.8      NotSupported(const String & message) : OperationFailure(CIM_ERR_NOT_SUPPORTED, message)
 55                {
 56                }
 57 mike  1.2  };
 58            
 59            class AccessDenied : public OperationFailure
 60            {
 61            public:
 62 chip  1.8      AccessDenied(const String & message) : OperationFailure(CIM_ERR_ACCESS_DENIED, message)
 63                {
 64                }
 65 mike  1.2  };
 66            
 67            class InvalidParameter : public OperationFailure
 68            {
 69            public:
 70 chip  1.8      InvalidParameter(const String & message) : OperationFailure(CIM_ERR_INVALID_PARAMETER,  message)
 71                {
 72                }
 73 mike  1.2  };
 74            
 75            class InvalidClass : public OperationFailure
 76            {
 77            public:
 78 chip  1.8      InvalidClass(const String & message) : OperationFailure(CIM_ERR_INVALID_CLASS,  message)
 79                {
 80                }
 81 mike  1.2  };
 82            
 83            class InvalidQuery : public OperationFailure
 84            {
 85            public:
 86 chip  1.8      InvalidQuery(const String & message) : OperationFailure(CIM_ERR_INVALID_QUERY, message)
 87                {
 88                }
 89 mike  1.2  };
 90            
 91            class ObjectAlreadyExists : public OperationFailure
 92            {
 93            public:
 94 chip  1.8      ObjectAlreadyExists(const String & message) : OperationFailure(CIM_ERR_ALREADY_EXISTS, message)
 95                {
 96                }
 97 mike  1.2  };
 98            
 99            class ObjectNotFound : public OperationFailure
100            {
101            public:
102 chip  1.8      ObjectNotFound(const String & message) : OperationFailure(CIM_ERR_NOT_FOUND, message)
103                {
104                }
105 mike  1.2  };
106            
107            class MethodNotFound : public OperationFailure
108            {
109            public:
110 chip  1.8      MethodNotFound(const String & message) : OperationFailure(CIM_ERR_METHOD_NOT_FOUND, message)
111                {
112                }
113 mike  1.2  };
114            
115            class PropertyNotFound : public OperationFailure
116            {
117            public:
118 chip  1.8      PropertyNotFound(const String & message) : OperationFailure(CIM_ERR_NO_SUCH_PROPERTY, message)
119                {
120                }
121 mike  1.2  };
122            
123            PEGASUS_NAMESPACE_END
124            
125            #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2