version 1.141, 2006/08/22 18:30:48
|
version 1.142, 2006/10/30 13:02:53
|
|
|
#include <cstdio> | #include <cstdio> |
#include "Constants.h" | #include "Constants.h" |
#include "CIMClass.h" | #include "CIMClass.h" |
|
#include "CIMError.h" |
#include "CIMClassRep.h" | #include "CIMClassRep.h" |
#include "CIMInstance.h" | #include "CIMInstance.h" |
#include "CIMInstanceRep.h" | #include "CIMInstanceRep.h" |
|
|
| |
static const char *clientTransferEncodingOff = | static const char *clientTransferEncodingOff = |
getenv("PEGASUS_HTTP_TRANSFER_ENCODING_REQUEST"); | getenv("PEGASUS_HTTP_TRANSFER_ENCODING_REQUEST"); |
|
|
if (!clientTransferEncodingOff || *clientTransferEncodingOff != '0') | if (!clientTransferEncodingOff || *clientTransferEncodingOff != '0') |
#endif | #endif |
| |
|
|
| |
out << STRLIT("<ERROR"); | out << STRLIT("<ERROR"); |
out << STRLIT(" CODE=\"") << Uint32(cimException.getCode()); | out << STRLIT(" CODE=\"") << Uint32(cimException.getCode()); |
|
|
out.append('"'); | out.append('"'); |
String description = TraceableCIMException(cimException).getDescription(); | String description = TraceableCIMException(cimException).getDescription(); |
if (description != String::EMPTY) | if (description != String::EMPTY) |
|
|
appendSpecial(out, description); | appendSpecial(out, description); |
out.append('"'); | out.append('"'); |
} | } |
out << STRLIT("/>"); |
out << STRLIT(">"); |
|
|
|
((CIMException*)&cimException)->addError(CIMError().getInstance()); |
|
|
|
for (Uint32 i = 0, n = cimException.getErrorCount(); i < n; i++) |
|
{ |
|
appendInstanceElement(out, cimException.getError(i)); |
|
} |
|
|
|
out << STRLIT("</ERROR>"); |
} | } |
| |
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |