summaryrefslogtreecommitdiff
path: root/jurt/com/sun/star/lib/connections/pipe/PipeConnection.java
diff options
context:
space:
mode:
Diffstat (limited to 'jurt/com/sun/star/lib/connections/pipe/PipeConnection.java')
-rw-r--r--jurt/com/sun/star/lib/connections/pipe/PipeConnection.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/jurt/com/sun/star/lib/connections/pipe/PipeConnection.java b/jurt/com/sun/star/lib/connections/pipe/PipeConnection.java
index 2552c9b9689b..44016075b42b 100644
--- a/jurt/com/sun/star/lib/connections/pipe/PipeConnection.java
+++ b/jurt/com/sun/star/lib/connections/pipe/PipeConnection.java
@@ -84,12 +84,10 @@ public class PipeConnection implements XConnection, XConnectionBroadcaster {
// create the pipe
try {
createJNI( aPipeName );
- } catch ( NullPointerException aNPE ) {
- throw new IOException( aNPE.getMessage() );
- } catch ( com.sun.star.io.IOException aIOE ) {
- throw new IOException( aIOE.getMessage() );
- } catch ( java.lang.Exception aE ) {
- throw new IOException( aE.getMessage() );
+ } catch ( java.lang.Exception ex1 ) {
+ IOException ex2 = new IOException();
+ ex2.initCause(ex1);
+ throw ex2;
}
}