summaryrefslogtreecommitdiff
path: root/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java')
-rw-r--r--scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
index d630e3f530c8..33bb67419eea 100644
--- a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
+++ b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
@@ -126,12 +126,16 @@ public class UCBStreamHandler extends URLStreamHandler {
catch ( com.sun.star.ucb.CommandAbortedException cae )
{
LogUtils.DEBUG("caught exception: " + cae.toString() + " getting writable stream from " + url );
- throw new IOException(cae);
+ IOException newEx = new IOException(cae.getMessage());
+ newEx.initCause(cae);
+ throw newEx;
}
catch ( com.sun.star.uno.Exception e )
{
LogUtils.DEBUG("caught unknown exception: " + e.toString() + " getting writable stream from " + url );
- throw new IOException(e);
+ IOException newEx = new IOException(e.getMessage());
+ newEx.initCause(e);
+ throw newEx;
}
return os;
}