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.java14
1 files changed, 8 insertions, 6 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 79f933cdeae4..3c27b0367d38 100644
--- a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
+++ b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
@@ -255,12 +255,14 @@ public class UCBStreamHandler extends URLStreamHandler {
}
result = new ByteArrayInputStream(inputBytes[0]);
- } catch (com.sun.star.io.IOException ioe) {
- LogUtils.DEBUG("caught exception " + ioe);
- throw new IOException(ioe.getMessage());
- } catch (com.sun.star.uno.Exception e) {
- LogUtils.DEBUG("caught exception " + e);
- throw new IOException(e.getMessage());
+ } catch (com.sun.star.io.IOException ex1) {
+ IOException ex2 = new IOException();
+ ex2.initCause(ex1);
+ throw ex2;
+ } catch (com.sun.star.uno.Exception ex1) {
+ IOException ex2 = new IOException();
+ ex2.initCause(ex1);
+ throw ex2;
} finally {
if (xInputStream != null) {
try {