summaryrefslogtreecommitdiff
path: root/bean
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-15 16:17:25 +0200
committerNoel Grandin <noel@peralex.com>2014-09-25 13:47:25 +0200
commit83636d2c09802aeeb1b30078022d228d04da21eb (patch)
tree8a0c619e16c1f6b5388939d5da2956f7ef758c19 /bean
parentcf49392511e98851174b353782df9eb6bac46f77 (diff)
java: when rethrowing exceptions, store the original cause
so that we get a nice complete stacktrace when it hits the final handler Change-Id: Iec4fcc15a2a25c55f591b5e069dce3d010197a90
Diffstat (limited to 'bean')
-rw-r--r--bean/com/sun/star/beans/LocalOfficeConnection.java2
-rw-r--r--bean/com/sun/star/comp/beans/LocalOfficeConnection.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/bean/com/sun/star/beans/LocalOfficeConnection.java b/bean/com/sun/star/beans/LocalOfficeConnection.java
index b091d544d56d..a47650de6550 100644
--- a/bean/com/sun/star/beans/LocalOfficeConnection.java
+++ b/bean/com/sun/star/beans/LocalOfficeConnection.java
@@ -311,7 +311,7 @@ public class LocalOfficeConnection
System.out.println( e );
e.printStackTrace();
System.out.println( "--- end." );
- throw new com.sun.star.uno.RuntimeException( e.toString() );
+ throw new com.sun.star.uno.RuntimeException(e);
}
return null;
diff --git a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
index 7f1a95a26834..ac260fef091f 100644
--- a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
+++ b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
@@ -379,7 +379,7 @@ public class LocalOfficeConnection
System.out.println( e );
e.printStackTrace();
System.out.println( "--- end." );
- throw new com.sun.star.uno.RuntimeException( e.toString() );
+ throw new com.sun.star.uno.RuntimeException(e);
}
return null;