summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java')
-rw-r--r--qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java53
1 files changed, 15 insertions, 38 deletions
diff --git a/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java b/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java
index 3a7b8b528d70..17839ab97c3b 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java
@@ -112,8 +112,7 @@ public class TableWindowAccessibility extends TestCase {
Param.getMSF()
.createInstance("com.sun.star.awt.Toolkit");
} catch (com.sun.star.uno.Exception e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed("Couldn't create instance"));
+ throw new StatusException(e, Status.failed("Couldn't create instance"));
}
String mysqlURL = (String) Param.get("mysql.url");
@@ -146,21 +145,13 @@ public class TableWindowAccessibility extends TestCase {
propSetDBSource.setPropertyValue("URL", mysqlURL);
propSetDBSource.setPropertyValue("Info", info);
} catch (com.sun.star.lang.WrappedTargetException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
- "Couldn't set property value"));
+ throw new StatusException(e, Status.failed("Couldn't set property value"));
} catch (com.sun.star.lang.IllegalArgumentException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
- "Couldn't set property value"));
+ throw new StatusException(e, Status.failed("Couldn't set property value"));
} catch (com.sun.star.beans.PropertyVetoException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
- "Couldn't set property value"));
+ throw new StatusException(e, Status.failed("Couldn't set property value"));
} catch (com.sun.star.beans.UnknownPropertyException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
- "Couldn't set property value"));
+ throw new StatusException(e, Status.failed("Couldn't set property value"));
}
try {
@@ -211,8 +202,7 @@ public class TableWindowAccessibility extends TestCase {
statement.executeUpdate("create table " + tbl_name2 + " (" +
col_name2 + " int)");
} catch (com.sun.star.sdbc.SQLException e2) {
- e2.printStackTrace(log);
- throw new StatusException(Status.failed("SQLException"));
+ throw new StatusException(e2, Status.failed("SQLException"));
}
}
@@ -232,21 +222,13 @@ public class TableWindowAccessibility extends TestCase {
col_name2;
queryProp.setPropertyValue("Command", query);
} catch (com.sun.star.lang.WrappedTargetException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
- "Couldn't set property value"));
+ throw new StatusException(e, Status.failed("Couldn't set property value"));
} catch (com.sun.star.lang.IllegalArgumentException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
- "Couldn't set property value"));
+ throw new StatusException(e, Status.failed("Couldn't set property value"));
} catch (com.sun.star.beans.PropertyVetoException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
- "Couldn't set property value"));
+ throw new StatusException(e, Status.failed("Couldn't set property value"));
} catch (com.sun.star.beans.UnknownPropertyException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
- "Couldn't set property value"));
+ throw new StatusException(e, Status.failed("Couldn't set property value"));
}
XNameContainer queryContainer = UnoRuntime.queryInterface(
@@ -258,20 +240,15 @@ public class TableWindowAccessibility extends TestCase {
store.store();
connection.close ();
} catch (com.sun.star.lang.WrappedTargetException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed("Couldn't insert query"));
+ throw new StatusException(e, Status.failed("Couldn't insert query"));
} catch (com.sun.star.container.ElementExistException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed("Couldn't insert query"));
+ throw new StatusException(e, Status.failed("Couldn't insert query"));
} catch (com.sun.star.lang.IllegalArgumentException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed("Couldn't insert query"));
+ throw new StatusException(e, Status.failed("Couldn't insert query"));
} catch (com.sun.star.io.IOException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed("Couldn't insert query"));
+ throw new StatusException(e, Status.failed("Couldn't insert query"));
} catch (com.sun.star.sdbc.SQLException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed("Couldn't insert query"));
+ throw new StatusException(e, Status.failed("Couldn't insert query"));
}
PropertyValue[] loadProps = new PropertyValue[3];