diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-16 12:16:51 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-16 12:27:13 +0200 |
commit | 5cba8d44cabc3cbb18648efc9d8658d471b257e7 (patch) | |
tree | 7656e262fcc7b590c2c6a87f966e08956e2f14ec /qadevOOo/tests/java/mod/_fwk/Desktop.java | |
parent | 25d70197a4e428d1dbde59209505f76d33287416 (diff) |
java: when rethrowing, store the original exception
Change-Id: Idfca83a2a646acab90886c0ef9c30dd7d2fc8b53
Diffstat (limited to 'qadevOOo/tests/java/mod/_fwk/Desktop.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_fwk/Desktop.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/mod/_fwk/Desktop.java b/qadevOOo/tests/java/mod/_fwk/Desktop.java index f97d440b1588..35fd5183d6e7 100644 --- a/qadevOOo/tests/java/mod/_fwk/Desktop.java +++ b/qadevOOo/tests/java/mod/_fwk/Desktop.java @@ -100,9 +100,7 @@ public class Desktop extends TestCase { log.println( "creating a text document" ); xTextDoc = SOF.createTextDoc(null); } catch ( com.sun.star.uno.Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); + throw new StatusException("Couldn't create document", e); } XInterface oObj = null; @@ -111,9 +109,7 @@ public class Desktop extends TestCase { oObj = (XInterface)Param.getMSF().createInstance( "com.sun.star.comp.framework.Desktop"); } 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")); } TestEnvironment tEnv = new TestEnvironment( oObj ); |