diff options
author | Benoit Foucher <benoit@zeroc.com> | 2002-11-27 21:39:11 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2002-11-27 21:39:11 +0000 |
commit | b292cf047a7ad583fda0931ce9e98968619bae2f (patch) | |
tree | a850a516edc1df4f2c27d7cb18898dc418d631dd /java | |
parent | Added host attribute to DNSException. (diff) | |
download | ice-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.java | 4 | ||||
-rw-r--r-- | java/src/IceInternal/Outgoing.java | 2 |
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 |