diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-16 12:19:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-16 12:27:15 +0200 |
commit | 9341bf3dc38b2cc117ffbe12ff057511ed6e046d (patch) | |
tree | 3a54c1764eb0e3106695292a737944507d3b4fb6 /jurt/com/sun/star/lib/connections/socket/SocketConnection.java | |
parent | b2f69f626409442d1f0ca5049b946946ce9b01d8 (diff) |
java: when rethrowing, store the original exception
Change-Id: I34ce000c48d2d79bfec854c8dd55d12f2bee29c7
Diffstat (limited to 'jurt/com/sun/star/lib/connections/socket/SocketConnection.java')
-rw-r--r-- | jurt/com/sun/star/lib/connections/socket/SocketConnection.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jurt/com/sun/star/lib/connections/socket/SocketConnection.java b/jurt/com/sun/star/lib/connections/socket/SocketConnection.java index 6f2a548afb2c..c0a94d62e735 100644 --- a/jurt/com/sun/star/lib/connections/socket/SocketConnection.java +++ b/jurt/com/sun/star/lib/connections/socket/SocketConnection.java @@ -173,7 +173,7 @@ public class SocketConnection implements XConnection, XConnectionBroadcaster { try { _outputStream.write(aData); } catch(IOException ioException) { - com.sun.star.io.IOException unoIOException = new com.sun.star.io.IOException(ioException.toString()); + com.sun.star.io.IOException unoIOException = new com.sun.star.io.IOException(ioException); notifyListeners_error(unoIOException); throw unoIOException; @@ -192,7 +192,7 @@ public class SocketConnection implements XConnection, XConnectionBroadcaster { try { _outputStream.flush(); } catch(IOException ioException) { - com.sun.star.io.IOException unoIOException = new com.sun.star.io.IOException(ioException.toString()); + com.sun.star.io.IOException unoIOException = new com.sun.star.io.IOException(ioException); notifyListeners_error(unoIOException); throw unoIOException; @@ -209,7 +209,7 @@ public class SocketConnection implements XConnection, XConnectionBroadcaster { try { _socket.close(); } catch(IOException ioException) { - com.sun.star.io.IOException unoIOException = new com.sun.star.io.IOException(ioException.toString()); + com.sun.star.io.IOException unoIOException = new com.sun.star.io.IOException(ioException); notifyListeners_error(unoIOException); throw unoIOException; |