diff options
author | Mark Spruiell <mes@zeroc.com> | 2002-10-12 00:13:40 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2002-10-12 00:13:40 +0000 |
commit | 17173387a237b2da8f61780d269e25a78f317cf5 (patch) | |
tree | 732320c904414575b4e64383dd6f9235bc571c6b /cpp/src/Ice/Exception.cpp | |
parent | bug fix (diff) | |
download | ice-17173387a237b2da8f61780d269e25a78f317cf5.tar.bz2 ice-17173387a237b2da8f61780d269e25a78f317cf5.tar.xz ice-17173387a237b2da8f61780d269e25a78f317cf5.zip |
validate identities
Diffstat (limited to 'cpp/src/Ice/Exception.cpp')
-rw-r--r-- | cpp/src/Ice/Exception.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp index 9ecde5040f7..7df89f3d7ac 100644 --- a/cpp/src/Ice/Exception.cpp +++ b/cpp/src/Ice/Exception.cpp @@ -116,6 +116,13 @@ Ice::EndpointParseException::ice_print(ostream& out) const } void +Ice::IdentityParseException::ice_print(ostream& out) const +{ + Exception::ice_print(out); + out << ":\nerror while parsing identity `" << str << "'"; +} + +void Ice::ProxyParseException::ice_print(ostream& out) const { Exception::ice_print(out); @@ -123,6 +130,13 @@ Ice::ProxyParseException::ice_print(ostream& out) const } void +Ice::IllegalIdentityException::ice_print(ostream& out) const +{ + Exception::ice_print(out); + out << ":\nillegal identity: `" << id << "'"; +} + +void Ice::LocationForwardIdentityException::ice_print(ostream& out) const { Exception::ice_print(out); @@ -132,7 +146,7 @@ Ice::LocationForwardIdentityException::ice_print(ostream& out) const static void printFailedRequestData(ostream& out, const RequestFailedException& ex) { - out << "\nidentity: " << identityToString(ex.id); + out << "\nidentity: " << ex.id; out << "\nfacet: "; vector<string>::const_iterator p = ex.facet.begin(); while(p != ex.facet.end()) |