summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-11-27 21:37:20 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-11-27 21:37:20 +0000
commit3ba2afaa02c901f07fec4ad6057e53b5f660fe82 (patch)
treefeb214cb9e253ebbafaab02426377e95495ea317 /cpp/src
parentFiles required to generate RSA certificates for new ice installs. (diff)
downloadice-3ba2afaa02c901f07fec4ad6057e53b5f660fe82.tar.bz2
ice-3ba2afaa02c901f07fec4ad6057e53b5f660fe82.tar.xz
ice-3ba2afaa02c901f07fec4ad6057e53b5f660fe82.zip
Added host attribute to DNSException.
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/Exception.cpp2
-rw-r--r--cpp/src/Ice/Network.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp
index d31c97e6718..d471a7b6b55 100644
--- a/cpp/src/Ice/Exception.cpp
+++ b/cpp/src/Ice/Exception.cpp
@@ -239,7 +239,7 @@ void
Ice::DNSException::ice_print(ostream& out) const
{
Exception::ice_print(out);
- out << ":\nDNS error: " << errorToStringDNS(error);
+ out << ":\nDNS error: " << errorToStringDNS(error) << "\nhost: " << host;
}
void
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp
index 3d9c77a3271..d2f35294cc7 100644
--- a/cpp/src/Ice/Network.cpp
+++ b/cpp/src/Ice/Network.cpp
@@ -606,6 +606,7 @@ IceInternal::getAddress(const string& host, int port, struct sockaddr_in& addr)
{
DNSException ex(__FILE__, __LINE__);
ex.error = getDNSErrno();
+ ex.host = host;
throw ex;
}
@@ -644,6 +645,7 @@ IceInternal::getLocalHost(bool numeric)
{
DNSException ex(__FILE__, __LINE__);
ex.error = getDNSErrno();
+ ex.host = host;
throw ex;
}