summaryrefslogtreecommitdiff
path: root/testtools/com/sun/star
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-16 12:19:14 +0200
committerNoel Grandin <noel@peralex.com>2014-10-16 12:27:15 +0200
commit9341bf3dc38b2cc117ffbe12ff057511ed6e046d (patch)
tree3a54c1764eb0e3106695292a737944507d3b4fb6 /testtools/com/sun/star
parentb2f69f626409442d1f0ca5049b946946ce9b01d8 (diff)
java: when rethrowing, store the original exception
Change-Id: I34ce000c48d2d79bfec854c8dd55d12f2bee29c7
Diffstat (limited to 'testtools/com/sun/star')
-rw-r--r--testtools/com/sun/star/comp/bridge/TestComponent.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/testtools/com/sun/star/comp/bridge/TestComponent.java b/testtools/com/sun/star/comp/bridge/TestComponent.java
index 4a5c0763461a..bee487bc4ef2 100644
--- a/testtools/com/sun/star/comp/bridge/TestComponent.java
+++ b/testtools/com/sun/star/comp/bridge/TestComponent.java
@@ -285,7 +285,7 @@ public class TestComponent {
return new Type[]{new Type(XPerformanceTest.class), new Type(XServiceInfo.class), new Type(XTypeProvider.class)};
}
catch(Exception exception) {
- throw new com.sun.star.uno.RuntimeException(exception.getMessage());
+ throw new com.sun.star.uno.RuntimeException(exception);
}
}
@@ -721,7 +721,7 @@ public class TestComponent {
Thread.sleep(nWaitMUSEC / 10000);
}
catch(InterruptedException interruptedException) {
- throw new com.sun.star.uno.RuntimeException(interruptedException.getMessage());
+ throw new com.sun.star.uno.RuntimeException(interruptedException);
}
if(_bFirstCall)
@@ -738,7 +738,7 @@ public class TestComponent {
Thread.sleep(nWaitMUSEC / 10000);
}
catch(InterruptedException interruptedException) {
- throw new com.sun.star.uno.RuntimeException(interruptedException.getMessage());
+ throw new com.sun.star.uno.RuntimeException(interruptedException);
}
_bSequenceOfCallTestPassed = _bSequenceOfCallTestPassed && (nCallId > _nLastCallId);
@@ -954,7 +954,7 @@ public class TestComponent {
return new Type[]{new Type(XBridgeTest.class), new Type(XRecursiveCall.class), new Type(XServiceInfo.class), new Type(XTypeProvider.class)};
}
catch(Exception exception) {
- throw new com.sun.star.uno.RuntimeException(exception.getMessage());
+ throw new com.sun.star.uno.RuntimeException(exception);
}
}