diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-16 12:17:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-16 12:27:14 +0200 |
commit | b2f69f626409442d1f0ca5049b946946ce9b01d8 (patch) | |
tree | fdd7bde284b00b3fbbc8ed62b8b35da6097bb281 /scripting/java/Framework | |
parent | 5cba8d44cabc3cbb18648efc9d8658d471b257e7 (diff) |
java: when rethrowing, store the original exception
Change-Id: I14666493e72da177fcfff1895ef3206f0e13cc01
Diffstat (limited to 'scripting/java/Framework')
-rw-r--r-- | scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java | 10 |
1 files changed, 3 insertions, 7 deletions
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); } } |