summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/GUI/DialogDocument.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/GUI/DialogDocument.java')
-rw-r--r--odk/examples/DevelopersGuide/GUI/DialogDocument.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/odk/examples/DevelopersGuide/GUI/DialogDocument.java b/odk/examples/DevelopersGuide/GUI/DialogDocument.java
index 570f5b2a78f5..fd5df052b05b 100644
--- a/odk/examples/DevelopersGuide/GUI/DialogDocument.java
+++ b/odk/examples/DevelopersGuide/GUI/DialogDocument.java
@@ -134,11 +134,9 @@ public class DialogDocument extends UnoDialogSample {
aPropertyValues[1] = aPropertyValue;
xComponentLoader.loadComponentFromURL(_sUrl, "_self", 0, aPropertyValues);
} catch (com.sun.star.lang.IllegalArgumentException ex) {
- ex.printStackTrace();
- throw new java.lang.RuntimeException("cannot happen...");
+ throw new java.lang.RuntimeException("cannot happen...", ex);
} catch (com.sun.star.uno.Exception ex) {
- ex.printStackTrace();
- throw new java.lang.RuntimeException("cannot happen...");
+ throw new java.lang.RuntimeException("cannot happen...", ex);
}
}