summaryrefslogtreecommitdiff
path: root/odk/examples
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-10 13:35:17 +0200
committerNoel Grandin <noel@peralex.com>2014-12-10 13:37:24 +0200
commitfd60dd5226b6cefb1eb621f8e479ba59bf11b0b7 (patch)
tree8508b20e7ed08bd11227551d3d57e7ce7a7e40d9 /odk/examples
parent07c54fff7ad9da498acd482148e491b879766bd4 (diff)
java: improve use of WrappedTargetException to set cause properly
since we introduced the new constructors that pass the cause all the way up to java.lang.Throwable. Also simplify some exeception printing sites, because Throwable will correctly print out child exceptions for us. Change-Id: Ibbecce3c6f971fbc80d6de2052ab4f33a4503c0a
Diffstat (limited to 'odk/examples')
-rw-r--r--odk/examples/DevelopersGuide/BasicAndDialogs/CreatingDialogs/SampleDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/odk/examples/DevelopersGuide/BasicAndDialogs/CreatingDialogs/SampleDialog.java b/odk/examples/DevelopersGuide/BasicAndDialogs/CreatingDialogs/SampleDialog.java
index 2b25f21fba1b..5238028cee55 100644
--- a/odk/examples/DevelopersGuide/BasicAndDialogs/CreatingDialogs/SampleDialog.java
+++ b/odk/examples/DevelopersGuide/BasicAndDialogs/CreatingDialogs/SampleDialog.java
@@ -130,7 +130,7 @@ public class SampleDialog extends WeakBase implements XServiceInfo, XJobExecutor
createDialog();
}
catch ( Exception e ) {
- throw new com.sun.star.lang.WrappedTargetRuntimeException( e.getMessage(), this, e );
+ throw new com.sun.star.lang.WrappedTargetRuntimeException( e, e.getMessage(), this, e );
}
}
}