diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-05-09 13:07:41 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-05-09 13:07:41 +0000 |
commit | 197b6de9281b52d0b53c4b3fa3312e371b4469a9 (patch) | |
tree | bae93f8155da0770f5dd45d12ef1160ee99aed54 /cppe/src/IceE/LocalException.cpp | |
parent | Added identityToString and stringToIdentity to Communicator (diff) | |
download | ice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.tar.bz2 ice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.tar.xz ice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.zip |
Fixed proxy and identity t/from string functions to use string converters
Diffstat (limited to 'cppe/src/IceE/LocalException.cpp')
-rwxr-xr-x | cppe/src/IceE/LocalException.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/cppe/src/IceE/LocalException.cpp b/cppe/src/IceE/LocalException.cpp index 70e45d61f3e..3b1be10842d 100755 --- a/cppe/src/IceE/LocalException.cpp +++ b/cppe/src/IceE/LocalException.cpp @@ -9,7 +9,7 @@ #include <IceE/LocalException.h> #include <IceE/SafeStdio.h> -#include <IceE/IdentityUtil.h> +#include <IceE/StringUtil.h> #include <IceE/Network.h> using namespace std; @@ -1910,7 +1910,14 @@ Ice::IllegalIdentityException::toString() const { string out = Exception::toString(); out += ":\nillegal identity: `"; - out += identityToString(id); + if(id.category.empty()) + { + out += IceUtil::escapeString(id.name, "/"); + } + else + { + out += IceUtil::escapeString(id.category, "/") + '/' + IceUtil::escapeString(id.name, "/"); + } out += "'"; return out; } @@ -1919,7 +1926,14 @@ static void printFailedRequestData(string& out, const RequestFailedException& ex) { out += "\nidentity: "; - out += identityToString(ex.id); + if(ex.id.category.empty()) + { + out += IceUtil::escapeString(ex.id.name, "/"); + } + else + { + out += IceUtil::escapeString(ex.id.category, "/") + '/' + IceUtil::escapeString(ex.id.name, "/"); + } out += "\nfacet: "; out += ex.facet; out += "\noperation: "; |