diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-16 12:19:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-16 12:27:15 +0200 |
commit | 9341bf3dc38b2cc117ffbe12ff057511ed6e046d (patch) | |
tree | 3a54c1764eb0e3106695292a737944507d3b4fb6 /desktop/test | |
parent | b2f69f626409442d1f0ca5049b946946ce9b01d8 (diff) |
java: when rethrowing, store the original exception
Change-Id: I34ce000c48d2d79bfec854c8dd55d12f2bee29c7
Diffstat (limited to 'desktop/test')
-rw-r--r-- | desktop/test/deployment/options/handler/com/sun/star/comp/extensionoptions/OptionsEventHandler.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop/test/deployment/options/handler/com/sun/star/comp/extensionoptions/OptionsEventHandler.java b/desktop/test/deployment/options/handler/com/sun/star/comp/extensionoptions/OptionsEventHandler.java index 559fbd810f64..28d6dc3b092c 100644 --- a/desktop/test/deployment/options/handler/com/sun/star/comp/extensionoptions/OptionsEventHandler.java +++ b/desktop/test/deployment/options/handler/com/sun/star/comp/extensionoptions/OptionsEventHandler.java @@ -156,8 +156,8 @@ public class OptionsEventHandler { } else if (sMethod.equals("back") || sMethod.equals("initialize")) { loadData(aWindow); } - } catch (com.sun.star.lang.IllegalArgumentException e) { - throw new com.sun.star.lang.IllegalArgumentException( + } catch (com.sun.star.lang.IllegalArgumentException ex) { + throw new com.sun.star.lang.IllegalArgumentException(ex, "Method external_event requires a string in the event object argument.", this, (short) -1); } @@ -216,8 +216,8 @@ public class OptionsEventHandler { //The value is still contained in a com.sun.star.uno.Any - so convert it. try { sValue = AnyConverter.toString(aText); - } catch (com.sun.star.lang.IllegalArgumentException e) { - throw new com.sun.star.lang.IllegalArgumentException( + } catch (com.sun.star.lang.IllegalArgumentException ex) { + throw new com.sun.star.lang.IllegalArgumentException(ex, "Wrong property type.", this, (short) -1); } @@ -350,8 +350,8 @@ public class OptionsEventHandler { String sName = null; try { sName = AnyConverter.toString(aWindowName); - } catch (com.sun.star.lang.IllegalArgumentException e) { - throw new com.sun.star.uno.Exception( + } catch (com.sun.star.lang.IllegalArgumentException ex) { + throw new com.sun.star.uno.Exception(ex, "Name - property of window is not a string.", this); } |