summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-11-27 21:39:11 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-11-27 21:39:11 +0000
commitb292cf047a7ad583fda0931ce9e98968619bae2f (patch)
treea850a516edc1df4f2c27d7cb18898dc418d631dd /java
parentAdded host attribute to DNSException. (diff)
downloadice-b292cf047a7ad583fda0931ce9e98968619bae2f.tar.bz2
ice-b292cf047a7ad583fda0931ce9e98968619bae2f.tar.xz
ice-b292cf047a7ad583fda0931ce9e98968619bae2f.zip
- Added host attribute to DNSException
- Call fillInStackTrace() on the exception raised by a client request to get the stack trace from the caller thread.
Diffstat (limited to 'java')
-rw-r--r--java/src/IceInternal/Network.java4
-rw-r--r--java/src/IceInternal/Outgoing.java2
2 files changed, 5 insertions, 1 deletions
diff --git a/java/src/IceInternal/Network.java b/java/src/IceInternal/Network.java
index fbd813ba961..a8f3bd26a15 100644
--- a/java/src/IceInternal/Network.java
+++ b/java/src/IceInternal/Network.java
@@ -374,7 +374,9 @@ public final class Network
}
catch(java.net.UnknownHostException ex)
{
- throw new Ice.DNSException();
+ Ice.DNSException e = new Ice.DNSException();
+ e.host = host;
+ throw e;
}
}
diff --git a/java/src/IceInternal/Outgoing.java b/java/src/IceInternal/Outgoing.java
index 5bd55e11dc3..23b3bee1aa8 100644
--- a/java/src/IceInternal/Outgoing.java
+++ b/java/src/IceInternal/Outgoing.java
@@ -109,6 +109,8 @@ public final class Outgoing
if(_exception != null)
{
+ _exception.fillInStackTrace();
+
//
// A CloseConnectionException indicates graceful
// server shutdown, and is therefore always repeatable