summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java')
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java21
1 files changed, 7 insertions, 14 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java
index 4f83e467aad9..388249d8c7d4 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java
@@ -189,30 +189,24 @@ public class ScAccessiblePreviewHeaderCell extends TestCase {
xPropSet = UnoRuntime.queryInterface(
XPropertySet.class, oDefStyle);
} catch (com.sun.star.lang.WrappedTargetException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed("Couldn't get element"));
+ throw new StatusException(e, Status.failed("Couldn't get element"));
} catch (com.sun.star.container.NoSuchElementException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed("Couldn't get element"));
+ throw new StatusException(e, Status.failed("Couldn't get element"));
}
try {
xPropSet.setPropertyValue("PrintHeaders", Boolean.TRUE);
} catch (com.sun.star.lang.WrappedTargetException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
+ throw new StatusException(e, Status.failed(
"Couldn't set property 'PrintHeaders'"));
} catch (com.sun.star.lang.IllegalArgumentException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
+ throw new StatusException(e, Status.failed(
"Couldn't set property 'PrintHeaders'"));
} catch (com.sun.star.beans.PropertyVetoException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
+ throw new StatusException(e, Status.failed(
"Couldn't set property 'PrintHeaders'"));
} catch (com.sun.star.beans.UnknownPropertyException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
+ throw new StatusException(e, Status.failed(
"Couldn't set property 'PrintHeaders'"));
}
@@ -237,8 +231,7 @@ public class ScAccessiblePreviewHeaderCell extends TestCase {
xDispatcher.dispatch(aURL, null);
}
} catch (com.sun.star.uno.Exception e) {
- log.println("Couldn't change mode");
- throw new StatusException(Status.failed("Couldn't change mode"));
+ throw new StatusException(e, Status.failed("Couldn't change mode"));
}
XInterface oObj = null;