1 karl 1.17 //%2006////////////////////////////////////////////////////////////////////////
|
2 kumpf 1.1 //
|
3 karl 1.15 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 karl 1.12 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.15 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 karl 1.16 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.17 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
|
13 kumpf 1.1 //
14 // Permission is hereby granted, free of charge, to any person obtaining a copy
15 // of this software and associated documentation files (the "Software"), to
16 // deal in the Software without restriction, including without limitation the
17 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18 // sell copies of the Software, and to permit persons to whom the Software is
19 // furnished to do so, subject to the following conditions:
|
20 kumpf 1.3 //
|
21 kumpf 1.1 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30 //==============================================================================
31 //
32 //%/////////////////////////////////////////////////////////////////////////////
33
|
34 kumpf 1.6 #ifndef Pegasus_ClientException_h
35 #define Pegasus_ClientException_h
|
36 kumpf 1.1
37 #include <Pegasus/Common/Config.h>
38 #include <Pegasus/Common/String.h>
|
39 kumpf 1.4 #include <Pegasus/Common/Exception.h>
|
40 kumpf 1.1 #include <Pegasus/Client/Linkage.h>
41
42 PEGASUS_NAMESPACE_BEGIN
43
44 /**
45 An exception of this type indicates that the HTTP response from the CIM
46 Server was improperly formed.
47 */
48 class PEGASUS_CLIENT_LINKAGE CIMClientMalformedHTTPException
|
49 kumpf 1.5 : public Exception
|
50 kumpf 1.1 {
51 public:
|
52 kumpf 1.11 ///
|
53 kumpf 1.1 CIMClientMalformedHTTPException(const String& message);
54 };
55
56 /**
57 An exception of this type indicates that an HTTP error response was sent
58 by the CIM Server.
59 */
|
60 kumpf 1.8 class PEGASUS_CLIENT_LINKAGE CIMClientHTTPErrorException : public Exception
|
61 kumpf 1.1 {
62 public:
|
63 kumpf 1.11 ///
|
64 kumpf 1.8 CIMClientHTTPErrorException(
|
65 kumpf 1.1 Uint32 httpStatusCode,
|
66 kumpf 1.13 const String& reasonPhrase,
67 const String& cimError,
68 const String& cimErrorDetail);
69 ///
70 CIMClientHTTPErrorException(
71 Uint32 httpStatusCode,
|
72 kumpf 1.7 const String& cimError,
|
73 kumpf 1.10 const String& cimErrorDetail);
|
74 kumpf 1.11 ///
|
75 kumpf 1.8 CIMClientHTTPErrorException(const CIMClientHTTPErrorException& httpError);
|
76 kumpf 1.11 ///
|
77 kumpf 1.9 virtual ~CIMClientHTTPErrorException();
|
78 kumpf 1.1
|
79 kumpf 1.11 ///
|
80 kumpf 1.1 Uint32 getCode() const;
|
81 kumpf 1.11 ///
|
82 kumpf 1.1 String getCIMError() const;
|
83 kumpf 1.11 ///
|
84 kumpf 1.10 String getCIMErrorDetail() const;
|
85 kumpf 1.1 };
86
87 /**
88 An exception of this type indicates that the CIM response sent by the
89 CIM Server could not be decoded from XML.
90 */
|
91 kumpf 1.5 class PEGASUS_CLIENT_LINKAGE CIMClientXmlException : public Exception
|
92 kumpf 1.1 {
93 public:
|
94 kumpf 1.11 ///
|
95 kumpf 1.1 CIMClientXmlException(const String& message);
96 };
97
98 /**
99 An exception of this type indicates that the CIM response sent by the
100 CIM Server contained unexpected data.
101 */
102 class PEGASUS_CLIENT_LINKAGE CIMClientResponseException
|
103 kumpf 1.5 : public Exception
|
104 kumpf 1.1 {
105 public:
|
106 kumpf 1.11 ///
|
107 kumpf 1.1 CIMClientResponseException(const String& message);
108 };
109
110 PEGASUS_NAMESPACE_END
111
|
112 kumpf 1.6 #endif /* Pegasus_ClientException_h */
|