ProviderException.h
1 //%LICENSE////////////////////////////////////////////////////////////////
2 //
3 // Licensed to The Open Group (TOG) under one or more contributor license
4 // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 // this work for additional information regarding copyright ownership.
6 // Each contributor licenses this file to you under the OpenPegasus Open
7 // Source License; you may not use this file except in compliance with the
8 // License.
9 //
10 // Permission is hereby granted, free of charge, to any person obtaining a
11 // copy of this software and associated documentation files (the "Software"),
12 // to deal in the Software without restriction, including without limitation
13 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 // and/or sell copies of the Software, and to permit persons to whom the
15 // Software is furnished to do so, subject to the following conditions:
16 //
17 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
19 //
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
29 //
30 //%/////////////////////////////////////////////////////////////////////////////
31 
32 #ifndef Pegasus_ProviderException_h
33 #define Pegasus_ProviderException_h
34 
35 #include <Pegasus/Common/Config.h>
36 #include <Pegasus/Common/Exception.h>
37 #include <Pegasus/Provider/Linkage.h>
38 
39 PEGASUS_NAMESPACE_BEGIN
40 
61 class PEGASUS_PROVIDER_LINKAGE CIMOperationFailedException
62  : public CIMException
63 {
64 public:
71  CIMOperationFailedException(const String& message);
72 
73 #ifdef PEGASUS_INTERNALONLY
74  /*
75  <p>This exception will cause a <tt>CIM_ERR_FAILED</tt>
76  status code to be returned to the client.</p>
77  */
78  CIMOperationFailedException(const MessageLoaderParms& parms);
79 #endif
80 
81 protected:
90  const CIMStatusCode code,
91  const String& message);
92 
93 #ifdef PEGASUS_INTERNALONLY
95  const CIMStatusCode code,
96  const MessageLoaderParms& parms);
97 #endif
98 };
99 
104 class PEGASUS_PROVIDER_LINKAGE CIMAccessDeniedException
106 {
107 public:
112  CIMAccessDeniedException(const String& message);
113 
114 #ifdef PEGASUS_INTERNALONLY
115  CIMAccessDeniedException(const MessageLoaderParms& parms);
116 #endif
117 };
118 
124 class PEGASUS_PROVIDER_LINKAGE CIMInvalidParameterException
126 {
127 public:
133  CIMInvalidParameterException(const String& message);
134 
135 #ifdef PEGASUS_INTERNALONLY
136  CIMInvalidParameterException(const MessageLoaderParms& parms);
137 #endif
138 };
139 
140 #if 0
141 
146 class PEGASUS_PROVIDER_LINKAGE CIMInvalidClassException
148 {
149 public:
154  CIMInvalidClassException(const String& message);
155 
156 #ifdef PEGASUS_INTERNALONLY
157  CIMInvalidClassException(const MessageLoaderParms& parms);
158 #endif
159 };
160 #endif
161 
166 class PEGASUS_PROVIDER_LINKAGE CIMObjectNotFoundException
168 {
169 public:
174  CIMObjectNotFoundException(const String& message);
175 
176 #ifdef PEGASUS_INTERNALONLY
177  CIMObjectNotFoundException(const MessageLoaderParms& parms);
178 #endif
179 };
180 
186 class PEGASUS_PROVIDER_LINKAGE CIMNotSupportedException
188 {
189 public:
194  CIMNotSupportedException(const String& message);
195 
196 #ifdef PEGASUS_INTERNALONLY
197  CIMNotSupportedException(const MessageLoaderParms& parms);
198 #endif
199 };
200 
206 class PEGASUS_PROVIDER_LINKAGE CIMObjectAlreadyExistsException
208 {
209 public:
215  CIMObjectAlreadyExistsException(const String& message);
216 
217 #ifdef PEGASUS_INTERNALONLY
218  CIMObjectAlreadyExistsException(const MessageLoaderParms& parms);
219 #endif
220 };
221 
227 class PEGASUS_PROVIDER_LINKAGE CIMPropertyNotFoundException
229 {
230 public:
236  CIMPropertyNotFoundException(const String& message);
237 
238 #ifdef PEGASUS_INTERNALONLY
239  CIMPropertyNotFoundException(const MessageLoaderParms& parms);
240 #endif
241 };
242 
243 #if 0
244 // Query operations are not yet supported in Pegasus
250 class PEGASUS_PROVIDER_LINKAGE CIMInvalidQueryException
252 {
253 public:
258  CIMInvalidQueryException(const String& message);
259 
260 #ifdef PEGASUS_INTERNALONLY
261  CIMInvalidQueryException(const MessageLoaderParms& parms);
262 #endif
263 };
264 #endif
265 
271 class PEGASUS_PROVIDER_LINKAGE CIMMethodNotFoundException
273 {
274 public:
279  CIMMethodNotFoundException(const String& message);
280 
281 #ifdef PEGASUS_INTERNALONLY
282  CIMMethodNotFoundException(const MessageLoaderParms& parms);
283 #endif
284 };
285 
286 PEGASUS_NAMESPACE_END
287 
288 #endif
Definition: ProviderException.h:206
Definition: ProviderException.h:104
Definition: String.h:119
Definition: ProviderException.h:166
Definition: ProviderException.h:186
Definition: Exception.h:422
Definition: ProviderException.h:124
Definition: ProviderException.h:271
Definition: ProviderException.h:227
Definition: ProviderException.h:61