summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-16 12:16:51 +0200
committerNoel Grandin <noel@peralex.com>2014-10-16 12:27:13 +0200
commit5cba8d44cabc3cbb18648efc9d8658d471b257e7 (patch)
tree7656e262fcc7b590c2c6a87f966e08956e2f14ec /qadevOOo/tests/java/mod/_forms/ODatabaseForm.java
parent25d70197a4e428d1dbde59209505f76d33287416 (diff)
java: when rethrowing, store the original exception
Change-Id: Idfca83a2a646acab90886c0ef9c30dd7d2fc8b53
Diffstat (limited to 'qadevOOo/tests/java/mod/_forms/ODatabaseForm.java')
-rw-r--r--qadevOOo/tests/java/mod/_forms/ODatabaseForm.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java
index e1a2c68e61ae..8a1b43c88f56 100644
--- a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java
+++ b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java
@@ -330,10 +330,9 @@ public class ODatabaseForm extends TestCase {
try {
dbTools.initTestTableUsingJDBC(tableName, srcInf);
} catch (java.sql.SQLException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed("Couldn't " + " init test table. SQLException..."));
+ throw new StatusException(e, Status.failed("Couldn't " + " init test table. SQLException..."));
} catch (java.lang.ClassNotFoundException e) {
- throw new StatusException(Status.failed("Couldn't " + "register mysql driver"));
+ throw new StatusException(e, Status.failed("Couldn't " + "register mysql driver"));
}
}