• Main Page
  • Classes
  • Files
  • File List

/var/tmp/axbld-11697/rpm/BUILD/pegasus/src/Pegasus/Client/CIMClientException.h

00001 //%LICENSE////////////////////////////////////////////////////////////////
00002 //
00003 // Licensed to The Open Group (TOG) under one or more contributor license
00004 // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
00005 // this work for additional information regarding copyright ownership.
00006 // Each contributor licenses this file to you under the OpenPegasus Open
00007 // Source License; you may not use this file except in compliance with the
00008 // License.
00009 //
00010 // Permission is hereby granted, free of charge, to any person obtaining a
00011 // copy of this software and associated documentation files (the "Software"),
00012 // to deal in the Software without restriction, including without limitation
00013 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
00014 // and/or sell copies of the Software, and to permit persons to whom the
00015 // Software is furnished to do so, subject to the following conditions:
00016 //
00017 // The above copyright notice and this permission notice shall be included
00018 // in all copies or substantial portions of the Software.
00019 //
00020 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00021 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00022 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00023 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
00024 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
00025 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
00026 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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 /* Pegasus_ClientException_h */