version 1.17, 2005/02/05 22:59:23
|
version 1.18, 2006/01/10 19:41:15
|
|
|
#include <cstdio> | #include <cstdio> |
#include "InternalException.h" | #include "InternalException.h" |
#include <Pegasus/Common/CIMExceptionRep.h> | #include <Pegasus/Common/CIMExceptionRep.h> |
#include <Pegasus/Common/ContentLanguages.h> // l10n |
#include <Pegasus/Common/ContentLanguageList.h> |
#include "Tracer.h" | #include "Tracer.h" |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
|
|
static String _makeCIMExceptionDescription( | static String _makeCIMExceptionDescription( |
CIMStatusCode code, | CIMStatusCode code, |
const String& message, | const String& message, |
ContentLanguages &contentLanguages) |
ContentLanguageList& contentLanguages) |
{ | { |
String tmp; | String tmp; |
tmp = cimStatusCodeToString(code, contentLanguages); | tmp = cimStatusCodeToString(code, contentLanguages); |
|
|
| |
// l10n | // l10n |
TraceableCIMException::TraceableCIMException( | TraceableCIMException::TraceableCIMException( |
const ContentLanguages& langs, |
const ContentLanguageList& langs, |
CIMStatusCode code, | CIMStatusCode code, |
const String& message, | const String& message, |
const String& file, | const String& file, |
|
|
return rep->line; | return rep->line; |
} | } |
| |
const ContentLanguages& TraceableCIMException::getContentLanguages() const |
const ContentLanguageList& TraceableCIMException::getContentLanguages() const |
{ | { |
CIMExceptionRep* rep; | CIMExceptionRep* rep; |
rep = reinterpret_cast<CIMExceptionRep*>(_rep); | rep = reinterpret_cast<CIMExceptionRep*>(_rep); |