summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/TcpTransceiver.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2011-03-30 10:51:07 -0700
committerMark Spruiell <mes@zeroc.com>2011-03-30 10:51:07 -0700
commitc28875d4c01935919396999852cb1c3f92c0fdbc (patch)
tree12f6b1cefe57d572121dcb47bd22b2f65dc3edff /java/src/IceInternal/TcpTransceiver.java
parent4986 - add constructor that takes Throwable (diff)
downloadice-c28875d4c01935919396999852cb1c3f92c0fdbc.tar.bz2
ice-c28875d4c01935919396999852cb1c3f92c0fdbc.tar.xz
ice-c28875d4c01935919396999852cb1c3f92c0fdbc.zip
4987 - preserve exception cause
Diffstat (limited to 'java/src/IceInternal/TcpTransceiver.java')
-rw-r--r--java/src/IceInternal/TcpTransceiver.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/java/src/IceInternal/TcpTransceiver.java b/java/src/IceInternal/TcpTransceiver.java
index 94c29aa8452..3df1c906d65 100644
--- a/java/src/IceInternal/TcpTransceiver.java
+++ b/java/src/IceInternal/TcpTransceiver.java
@@ -70,9 +70,7 @@ final class TcpTransceiver implements Transceiver
}
catch(java.io.IOException ex)
{
- Ice.SocketException se = new Ice.SocketException();
- se.initCause(ex);
- throw se;
+ throw new Ice.SocketException(ex);
}
finally
{
@@ -147,9 +145,7 @@ final class TcpTransceiver implements Transceiver
}
catch(java.io.IOException ex)
{
- Ice.SocketException se = new Ice.SocketException();
- se.initCause(ex);
- throw se;
+ throw new Ice.SocketException(ex);
}
}
return true;
@@ -200,9 +196,7 @@ final class TcpTransceiver implements Transceiver
}
catch(java.io.IOException ex)
{
- Ice.ConnectionLostException se = new Ice.ConnectionLostException();
- se.initCause(ex);
- throw se;
+ throw new Ice.ConnectionLostException(ex);
}
}