diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-10 13:35:17 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-12-10 13:37:24 +0200 |
commit | fd60dd5226b6cefb1eb621f8e479ba59bf11b0b7 (patch) | |
tree | 8508b20e7ed08bd11227551d3d57e7ce7a7e40d9 /bridges | |
parent | 07c54fff7ad9da498acd482148e491b879766bd4 (diff) |
java: improve use of WrappedTargetException to set cause properly
since we introduced the new constructors that pass the cause all the
way up to java.lang.Throwable.
Also simplify some exeception printing sites, because Throwable
will correctly print out child exceptions for us.
Change-Id: Ibbecce3c6f971fbc80d6de2052ab4f33a4503c0a
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/test/java_uno/nativethreadpool/Relay.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridges/test/java_uno/nativethreadpool/Relay.java b/bridges/test/java_uno/nativethreadpool/Relay.java index fb1063b1308d..7b523f3210ab 100644 --- a/bridges/test/java_uno/nativethreadpool/Relay.java +++ b/bridges/test/java_uno/nativethreadpool/Relay.java @@ -43,7 +43,7 @@ public final class Relay implements XRelay, XSource { } catch (RuntimeException e) { throw e; } catch (com.sun.star.uno.Exception e) { - throw new WrappedTargetRuntimeException(e.getMessage(), this, e); + throw new WrappedTargetRuntimeException(e, e.getMessage(), this, e); } catch (Exception e) { throw new com.sun.star.uno.RuntimeException(e, "", this); } @@ -55,7 +55,7 @@ public final class Relay implements XRelay, XSource { context.getServiceManager().createInstanceWithContext( "com.sun.star.bridge.BridgeFactory", context)); } catch (com.sun.star.uno.Exception e) { - throw new WrappedTargetRuntimeException(e.getMessage(), this, e); + throw new WrappedTargetRuntimeException(e, e.getMessage(), this, e); } new Thread() { @Override |