00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00029
00030
00031
00032 #ifndef Pegasus_ClientException_h
00033 #define Pegasus_ClientException_h
00034
00035 #include <Pegasus/Common/Config.h>
00036 #include <Pegasus/Common/String.h>
00037 #include <Pegasus/Common/Exception.h>
00038 #include <Pegasus/Client/Linkage.h>
00039
00040 PEGASUS_NAMESPACE_BEGIN
00041
00046 class PEGASUS_CLIENT_LINKAGE CIMClientMalformedHTTPException
00047 : public Exception
00048 {
00049 public:
00054 CIMClientMalformedHTTPException(const String& message);
00055 };
00056
00061 class PEGASUS_CLIENT_LINKAGE CIMClientHTTPErrorException : public Exception
00062 {
00063 public:
00071 CIMClientHTTPErrorException(
00072 Uint32 httpStatusCode,
00073 const String& reasonPhrase,
00074 const String& cimError,
00075 const String& cimErrorDetail);
00076
00083 CIMClientHTTPErrorException(
00084 Uint32 httpStatusCode,
00085 const String& cimError,
00086 const String& cimErrorDetail);
00087
00092 CIMClientHTTPErrorException(const CIMClientHTTPErrorException& httpError);
00093
00097 virtual ~CIMClientHTTPErrorException();
00098
00103 CIMClientHTTPErrorException& operator=(
00104 const CIMClientHTTPErrorException& httpError);
00105
00110 Uint32 getCode() const;
00111
00116 String getCIMError() const;
00117
00124 String getCIMErrorDetail() const;
00125 };
00126
00131 class PEGASUS_CLIENT_LINKAGE CIMClientXmlException : public Exception
00132 {
00133 public:
00138 CIMClientXmlException(const String& message);
00139 };
00140
00145 class PEGASUS_CLIENT_LINKAGE CIMClientResponseException
00146 : public Exception
00147 {
00148 public:
00153 CIMClientResponseException(const String& message);
00154 };
00155
00156 PEGASUS_NAMESPACE_END
00157
00158 #endif