version 1.81, 2006/11/10 18:14:58
|
version 1.81.2.3, 2006/12/29 03:22:23
|
|
|
#include <Pegasus/Common/ExceptionRep.h> | #include <Pegasus/Common/ExceptionRep.h> |
#include <Pegasus/Common/CIMExceptionRep.h> | #include <Pegasus/Common/CIMExceptionRep.h> |
#include "Tracer.h" | #include "Tracer.h" |
|
#include "Backtrace.h" |
|
|
|
#ifdef XPEGASUS_BACKTRACE |
|
# undef PEGASUS_BACKTRACE |
|
# define PEGASUS_BACKTRACE /* */ |
|
#endif |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
Exception::Exception(const String& message) | Exception::Exception(const String& message) |
{ | { |
|
PEGASUS_BACKTRACE; |
_rep = new ExceptionRep(); | _rep = new ExceptionRep(); |
_rep->message = message; | _rep->message = message; |
_rep->contentLanguages.clear(); | _rep->contentLanguages.clear(); |
|
|
| |
Exception::Exception(const Exception& exception) | Exception::Exception(const Exception& exception) |
{ | { |
|
PEGASUS_BACKTRACE; |
_rep = new ExceptionRep(); | _rep = new ExceptionRep(); |
_rep->message = exception._rep->message; | _rep->message = exception._rep->message; |
_rep->contentLanguages = exception._rep->contentLanguages; | _rep->contentLanguages = exception._rep->contentLanguages; |
|
|
| |
Exception::Exception(const MessageLoaderParms& msgParms) | Exception::Exception(const MessageLoaderParms& msgParms) |
{ | { |
|
PEGASUS_BACKTRACE; |
_rep = new ExceptionRep(); | _rep = new ExceptionRep(); |
_rep->message = MessageLoader::getMessage( | _rep->message = MessageLoader::getMessage( |
const_cast<MessageLoaderParms &>(msgParms)); | const_cast<MessageLoaderParms &>(msgParms)); |
|
|
| |
Exception::Exception() | Exception::Exception() |
{ | { |
|
PEGASUS_BACKTRACE; |
_rep = NULL; | _rep = NULL; |
} | } |
| |