diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-05-29 18:22:25 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-05-29 18:25:24 +0200 |
commit | 1b330990733bcffbbf485df7aaed8130c899e2b8 (patch) | |
tree | d209ab0878863404de4cc90f7dc1870af456fe4a /qadevOOo | |
parent | 099198a4224778fe6e43f5dc13b5b9b1b4dc828c (diff) |
Improved error reporting
Change-Id: Ib852987c2040d47cd3de08c6aebc649a068378d6
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/runner/lib/MultiMethodTest.java | 1 | ||||
-rw-r--r-- | qadevOOo/runner/lib/StatusException.java | 19 |
2 files changed, 3 insertions, 17 deletions
diff --git a/qadevOOo/runner/lib/MultiMethodTest.java b/qadevOOo/runner/lib/MultiMethodTest.java index 901f4993edc8..a68461eaf70a 100644 --- a/qadevOOo/runner/lib/MultiMethodTest.java +++ b/qadevOOo/runner/lib/MultiMethodTest.java @@ -222,6 +222,7 @@ public class MultiMethodTest } catch (Exception e) { + e.printStackTrace(); setSubStates(e.toString()); return tRes; } diff --git a/qadevOOo/runner/lib/StatusException.java b/qadevOOo/runner/lib/StatusException.java index 4768a9229c8f..a4132574535f 100644 --- a/qadevOOo/runner/lib/StatusException.java +++ b/qadevOOo/runner/lib/StatusException.java @@ -34,12 +34,6 @@ package lib; */ public class StatusException extends RuntimeException { /** - * Contains an exception if the StatusException was created with - * StatusException(String, Throwable) constructor. - */ - protected Throwable exceptionThrown; - - /** * The Status contained in the StatusException. */ protected Status status; @@ -51,8 +45,7 @@ public class StatusException extends RuntimeException { * @param t the exception of the exception Status */ public StatusException( String message, Throwable t ) { - super( message ); - exceptionThrown = t; + super( message, t ); status = Status.exception( t ); } @@ -65,17 +58,9 @@ public class StatusException extends RuntimeException { } /** - * @return an exception, if this represents an exception Status, - * <tt>false</tt> otherwise. - */ - public Throwable getThrownException() { - return exceptionThrown; - } - - /** * @return a status contained in the StatusException. */ public Status getStatus() { return status; } -}
\ No newline at end of file +} |