version 1.15, 2006/11/14 18:34:48
|
version 1.16, 2008/02/12 19:19:31
|
|
|
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; |
|
|
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 (); |
|
|
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 (); |
|
|
| |
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; |