1 kumpf 1.1 //%/////////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
4 // The Open Group, Tivoli Systems
5 //
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 //
13 // 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 kumpf 1.1 //==============================================================================
23 //
24 // Author: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
25 //
26 // Modified By:
27 //
28 //%/////////////////////////////////////////////////////////////////////////////
29
30 #include <Pegasus/Common/Config.h>
31 #include "ProviderException.h"
32
33 PEGASUS_NAMESPACE_BEGIN
34
35 CIMOperationFailedException::CIMOperationFailedException(const String & message)
36 : CIMException(CIM_ERR_FAILED, message)
37 {
38 }
39
40 CIMOperationFailedException::CIMOperationFailedException(
41 const CIMStatusCode code,
42 const String & message)
43 kumpf 1.1 : CIMException(code, message)
44 {
45 }
46
47
48 CIMAccessDeniedException::CIMAccessDeniedException(const String & message)
49 : CIMOperationFailedException(CIM_ERR_ACCESS_DENIED, message)
50 {
51 }
52
53 CIMInvalidParameterException::CIMInvalidParameterException(
54 const String & message)
55 : CIMOperationFailedException(CIM_ERR_INVALID_PARAMETER, message)
56 {
57 }
58
59 #if 0
60 CIMInvalidClassException::CIMInvalidClassException(const String & message)
61 : CIMOperationFailedException(CIM_ERR_INVALID_CLASS, message)
62 {
63 }
64 kumpf 1.1 #endif
65
66 CIMObjectNotFoundException::CIMObjectNotFoundException(const String & message)
67 : CIMOperationFailedException(CIM_ERR_NOT_FOUND, message)
68 {
69 }
70
71 CIMNotSupportedException::CIMNotSupportedException(const String & message)
72 : CIMOperationFailedException(CIM_ERR_NOT_SUPPORTED, message)
73 {
74 }
75
76 CIMObjectAlreadyExistsException::CIMObjectAlreadyExistsException(
77 const String & message)
78 : CIMOperationFailedException(CIM_ERR_ALREADY_EXISTS, message)
79 {
80 }
81
82 CIMPropertyNotFoundException::CIMPropertyNotFoundException(const String & message)
83 : CIMOperationFailedException(CIM_ERR_NO_SUCH_PROPERTY, message)
84 {
85 kumpf 1.1 }
86
87 #if 0
88 // Query operations are not yet supported in Pegasus
89 CIMInvalidQueryException::CIMInvalidQueryException(const String & message)
90 : CIMOperationFailedException(CIM_ERR_INVALID_QUERY, message)
91 {
92 }
93 #endif
94
95 CIMMethodNotFoundException::CIMMethodNotFoundException(const String & message)
96 : CIMOperationFailedException(CIM_ERR_METHOD_NOT_FOUND, message)
97 {
98 }
99
100 PEGASUS_NAMESPACE_END
|