From b2f69f626409442d1f0ca5049b946946ce9b01d8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 16 Oct 2014 12:17:47 +0200 Subject: java: when rethrowing, store the original exception Change-Id: I14666493e72da177fcfff1895ef3206f0e13cc01 --- .../com/sun/star/script/framework/security/SecurityDialog.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'scripting/java/Framework') diff --git a/scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java b/scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java index b9df352d56e4..92f5ee777f97 100644 --- a/scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java +++ b/scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java @@ -165,7 +165,7 @@ public class SecurityDialog extends WeakBase implements try { checkBoxPath = AnyConverter.toString(args[0]); } catch (IllegalArgumentException e) { - throw new RuntimeException("SecurityDialog::initialize: " + e.getMessage()); + throw new RuntimeException(e); } LogUtils.DEBUG("path: " + checkBoxPath); @@ -189,13 +189,9 @@ public class SecurityDialog extends WeakBase implements try { _xDialog = createDialog(); } catch (com.sun.star.uno.Exception e) { - LogUtils.DEBUG("Couldn't create dialog"); - LogUtils.DEBUG("uno message: " + e.getMessage()); - throw new RuntimeException(e.getMessage()); + throw new RuntimeException(e); } catch (Exception e) { - LogUtils.DEBUG("Couldn't create dialog"); - LogUtils.DEBUG("message: " + e.getMessage()); - throw new RuntimeException(e.getMessage()); + throw new RuntimeException(e); } } -- cgit