summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Util.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-05-29 09:51:28 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-05-29 09:51:28 +0000
commita6cb3af17287c96cb1ed307b42fe9633d1905630 (patch)
tree93dd4bfa368f581998fbcf20802e84fb3f22ef8e /cpp/src/IceGrid/Util.cpp
parentMore changes for inconsistent ice_* proxy methods (diff)
downloadice-a6cb3af17287c96cb1ed307b42fe9633d1905630.tar.bz2
ice-a6cb3af17287c96cb1ed307b42fe9633d1905630.tar.xz
ice-a6cb3af17287c96cb1ed307b42fe9633d1905630.zip
Property set bug fixes, locator tracing.
Diffstat (limited to 'cpp/src/IceGrid/Util.cpp')
-rw-r--r--cpp/src/IceGrid/Util.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/Util.cpp b/cpp/src/IceGrid/Util.cpp
index 9c86ec2eba9..00d04bd3bf7 100644
--- a/cpp/src/IceGrid/Util.cpp
+++ b/cpp/src/IceGrid/Util.cpp
@@ -35,6 +35,32 @@ IceGrid::toString(const vector<string>& v, const string& sep)
}
string
+IceGrid::toString(const Ice::Exception& exception)
+{
+ std::ostringstream os;
+ try
+ {
+ exception.ice_throw();
+ }
+ catch(const NodeUnreachableException& ex)
+ {
+ os << ex << ":";
+ os << "\nnode: " << ex.name;
+ os << "\nreason: " << ex.reason;
+ }
+ catch(const DeploymentException& ex)
+ {
+ os << ex << ":";
+ os << "\nreason: " << ex.reason;
+ }
+ catch(const Ice::Exception& ex)
+ {
+ os << ex;
+ }
+ return os.str();
+}
+
+string
IceGrid::getProperty(const PropertySetDescriptor& propertySet, const string& name, const string& def)
{
for(PropertyDescriptorSeq::const_iterator q = propertySet.properties.begin();