summaryrefslogtreecommitdiffstats
path: root/scripting/java/Framework
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-16 12:17:47 +0200
committerNoel Grandin <noel@peralex.com>2014-10-16 12:27:14 +0200
commitb2f69f626409442d1f0ca5049b946946ce9b01d8 (patch)
treefdd7bde284b00b3fbbc8ed62b8b35da6097bb281 /scripting/java/Framework
parentjava: when rethrowing, store the original exception (diff)
downloadcore-b2f69f626409442d1f0ca5049b946946ce9b01d8.tar.gz
core-b2f69f626409442d1f0ca5049b946946ce9b01d8.zip
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.java10
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);
}
}