version 1.15.4.1, 2003/07/29 15:08:29
|
version 1.15.4.2, 2003/08/13 19:39:51
|
|
|
#include "CIMExportResponseDecoder.h" | #include "CIMExportResponseDecoder.h" |
#include "CIMExportClient.h" | #include "CIMExportClient.h" |
| |
|
// l10n |
|
#include <Pegasus/Common/MessageLoader.h> |
|
|
#include <iostream> | #include <iostream> |
| |
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
|
|
CIMResponseMessage* cimResponse = (CIMResponseMessage*)response; | CIMResponseMessage* cimResponse = (CIMResponseMessage*)response; |
if (cimResponse->messageId != messageId) | if (cimResponse->messageId != messageId) |
{ | { |
CIMClientResponseException responseException( |
|
String("Mismatched response message ID: Got \"") + |
// l10n |
cimResponse->messageId + "\", expected \"" + |
|
messageId + "\"."); |
// CIMClientResponseException responseException( |
|
// String("Mismatched response message ID: Got \"") + |
|
// cimResponse->messageId + "\", expected \"" + |
|
// messageId + "\"."); |
|
|
|
|
|
MessageLoaderParms mlParms("ExportClient.CIMExportClient.MISMATCHED_RESPONSE_ID", |
|
"Mismatched response message ID: Got \"$0\", expected \"$1\".", cimResponse->messageId, messageId); |
|
String mlString(MessageLoader::getMessage(mlParms)); |
|
|
|
CIMClientResponseException responseException(mlString); |
|
|
delete response; | delete response; |
throw responseException; | throw responseException; |
} | } |
|
|
} | } |
else | else |
{ | { |
CIMClientResponseException responseException( |
|
|
// l10n |
|
|
|
|
|
// CIMClientResponseException responseException( |
|
// "Mismatched response message type."); |
|
|
|
|
|
MessageLoaderParms mlParms("ExportClient.CIMExportClient.MISMATCHED_RESPONSE", |
"Mismatched response message type."); | "Mismatched response message type."); |
|
String mlString(MessageLoader::getMessage(mlParms)); |
|
|
|
CIMClientResponseException responseException(mlString); |
|
|
delete response; | delete response; |
throw responseException; | throw responseException; |
} | } |