diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-15 16:17:25 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-25 13:47:25 +0200 |
commit | 83636d2c09802aeeb1b30078022d228d04da21eb (patch) | |
tree | 8a0c619e16c1f6b5388939d5da2956f7ef758c19 /qadevOOo/tests/java/mod | |
parent | cf49392511e98851174b353782df9eb6bac46f77 (diff) |
java: when rethrowing exceptions, store the original cause
so that we get a nice complete stacktrace when it hits the final
handler
Change-Id: Iec4fcc15a2a25c55f591b5e069dce3d010197a90
Diffstat (limited to 'qadevOOo/tests/java/mod')
4 files changed, 4 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/mod/_sd/DrawController_HandoutView.java b/qadevOOo/tests/java/mod/_sd/DrawController_HandoutView.java index 9b55bbd2fa18..1703c95d4a5d 100644 --- a/qadevOOo/tests/java/mod/_sd/DrawController_HandoutView.java +++ b/qadevOOo/tests/java/mod/_sd/DrawController_HandoutView.java @@ -208,7 +208,7 @@ public class DrawController_HandoutView extends TestCase { utils.dispatchURL(xMSF, xDrawDoc, ".uno:HandoutMode"); } catch (Exception e){ e.printStackTrace(log); - throw new StatusException(Status.failed(e.toString())); + throw new StatusException(e, Status.failed(e.getMessage())); } utils.shortWait(500); diff --git a/qadevOOo/tests/java/mod/_sd/DrawController_NotesView.java b/qadevOOo/tests/java/mod/_sd/DrawController_NotesView.java index 42feb43e810a..65a641d1ddba 100644 --- a/qadevOOo/tests/java/mod/_sd/DrawController_NotesView.java +++ b/qadevOOo/tests/java/mod/_sd/DrawController_NotesView.java @@ -205,7 +205,7 @@ public class DrawController_NotesView extends TestCase { utils.dispatchURL(xMSF, xDrawDoc, ".uno:NotesMode"); } catch (Exception e){ e.printStackTrace(log); - throw new StatusException(Status.failed(e.toString())); + throw new StatusException(e, Status.failed(e.getMessage())); } utils.shortWait(500); diff --git a/qadevOOo/tests/java/mod/_sd/DrawController_OutlineView.java b/qadevOOo/tests/java/mod/_sd/DrawController_OutlineView.java index f48b6efe51d7..afb690acd572 100644 --- a/qadevOOo/tests/java/mod/_sd/DrawController_OutlineView.java +++ b/qadevOOo/tests/java/mod/_sd/DrawController_OutlineView.java @@ -205,7 +205,7 @@ public class DrawController_OutlineView extends TestCase { utils.dispatchURL(xMSF, xDrawDoc, ".uno:OutlineMode"); } catch (Exception e){ e.printStackTrace(log); - throw new StatusException(Status.failed(e.toString())); + throw new StatusException(e, Status.failed(e.getMessage())); } utils.shortWait(500); diff --git a/qadevOOo/tests/java/mod/_sd/DrawController_PresentationView.java b/qadevOOo/tests/java/mod/_sd/DrawController_PresentationView.java index 73780a85681f..5163c4f576a4 100644 --- a/qadevOOo/tests/java/mod/_sd/DrawController_PresentationView.java +++ b/qadevOOo/tests/java/mod/_sd/DrawController_PresentationView.java @@ -205,7 +205,7 @@ public class DrawController_PresentationView extends TestCase { utils.dispatchURL(xMSF, xDrawDoc, ".uno:DiaMode"); } catch (Exception e){ e.printStackTrace(log); - throw new StatusException(Status.failed(e.toString())); + throw new StatusException(e, Status.failed(e.getMessage())); } utils.shortWait(500); |