(file) Return to CIMClientException.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Client

Diff for /pegasus/src/Pegasus/Client/CIMClientException.cpp between version 1.15 and 1.16

version 1.15, 2006/11/14 18:34:48 version 1.16, 2008/02/12 19:19:31
Line 60 
Line 60 
 class CIMClientHTTPErrorExceptionRep : public ExceptionRep class CIMClientHTTPErrorExceptionRep : public ExceptionRep
 { {
 public: public:
   
       // Note:  The default implementations of the default constructor, copy
       // constructor, and assignment operator are used.
   
     Uint32 httpStatusCode;     Uint32 httpStatusCode;
     String reasonPhrase;     String reasonPhrase;
     String cimError;     String cimError;
Line 107 
Line 111 
     Uint32 httpStatusCode,     Uint32 httpStatusCode,
     const String& cimError,     const String& cimError,
     const String& cimErrorDetail)     const String& cimErrorDetail)
       : Exception()
 { {
     CIMClientHTTPErrorExceptionRep* tmp =     CIMClientHTTPErrorExceptionRep* tmp =
         new CIMClientHTTPErrorExceptionRep ();         new CIMClientHTTPErrorExceptionRep ();
Line 124 
Line 129 
     const String& reasonPhrase,     const String& reasonPhrase,
     const String& cimError,     const String& cimError,
     const String& cimErrorDetail)     const String& cimErrorDetail)
       : Exception()
 { {
     CIMClientHTTPErrorExceptionRep* tmp =     CIMClientHTTPErrorExceptionRep* tmp =
         new CIMClientHTTPErrorExceptionRep ();         new CIMClientHTTPErrorExceptionRep ();
Line 138 
Line 144 
  
 CIMClientHTTPErrorException::CIMClientHTTPErrorException( CIMClientHTTPErrorException::CIMClientHTTPErrorException(
     const CIMClientHTTPErrorException& httpError)     const CIMClientHTTPErrorException& httpError)
     : Exception(*this)      : Exception()
 { {
     CIMClientHTTPErrorExceptionRep * tmp =      _rep = new CIMClientHTTPErrorExceptionRep(
         new CIMClientHTTPErrorExceptionRep ();          *reinterpret_cast<CIMClientHTTPErrorExceptionRep*>(httpError._rep));
     tmp->message = httpError._rep->message;  
     CIMClientHTTPErrorExceptionRep * rep;  
     rep = reinterpret_cast<CIMClientHTTPErrorExceptionRep*>(httpError._rep);  
     tmp->httpStatusCode = rep->httpStatusCode;  
     tmp->reasonPhrase = rep->reasonPhrase;  
     tmp->cimError = rep->cimError;  
     tmp->cimErrorDetail = rep->cimErrorDetail;  
     _rep = tmp;  
 } }
  
 CIMClientHTTPErrorException::~CIMClientHTTPErrorException() CIMClientHTTPErrorException::~CIMClientHTTPErrorException()
 { {
 } }
  
   CIMClientHTTPErrorException& CIMClientHTTPErrorException::operator=(
       const CIMClientHTTPErrorException& httpError)
   {
       if (&httpError != this)
       {
           CIMClientHTTPErrorExceptionRep* left =
               reinterpret_cast<CIMClientHTTPErrorExceptionRep*>(this->_rep);
           CIMClientHTTPErrorExceptionRep* right =
               reinterpret_cast<CIMClientHTTPErrorExceptionRep*>(httpError._rep);
           *left = *right;
       }
       return *this;
   }
   
 Uint32 CIMClientHTTPErrorException::getCode() const Uint32 CIMClientHTTPErrorException::getCode() const
 { {
     CIMClientHTTPErrorExceptionRep* rep;     CIMClientHTTPErrorExceptionRep* rep;


Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2