summaryrefslogtreecommitdiff
path: root/jurt/com/sun/star/comp/bridgefactory
diff options
context:
space:
mode:
authorRobert Antoni Buj i Gelonch <robert.buj@gmail.com>2014-10-09 20:53:02 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-10 06:18:42 +0000
commit7afbb8275667ca8157be5449536e671bbac9f988 (patch)
tree8f5844329252ef912a3f9a1185f548880d77c1dc /jurt/com/sun/star/comp/bridgefactory
parent017ea9eb0f80ba750f0cf917033052c75e622c0a (diff)
jurt: use new exception constructors
Change-Id: I58e7ebdd5c48094142f93f47271bcc0cc8b97981 Reviewed-on: https://gerrit.libreoffice.org/11892 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'jurt/com/sun/star/comp/bridgefactory')
-rw-r--r--jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java b/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java
index 7e370a980174..7dd6fcf6762a 100644
--- a/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java
+++ b/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java
@@ -124,10 +124,7 @@ public class BridgeFactory implements XBridgeFactory/*, XEventListener*/ {
xBridge = UnoRuntime.queryInterface(XBridge.class, iBridge);
}
catch (Exception e) {
- com.sun.star.lang.IllegalArgumentException e2 =
- new com.sun.star.lang.IllegalArgumentException(e.getMessage());
- e2.initCause(e);
- throw e2;
+ throw new com.sun.star.lang.IllegalArgumentException(e, e.getMessage());
}
if(DEBUG) System.err.println("##### " + getClass().getName() + ".createBridge:" + sName + " " + sProtocol + " " + aConnection + " " + anInstanceProvider + " " + xBridge);