From 1b330990733bcffbbf485df7aaed8130c899e2b8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 29 May 2012 18:22:25 +0200 Subject: Improved error reporting Change-Id: Ib852987c2040d47cd3de08c6aebc649a068378d6 --- qadevOOo/runner/lib/MultiMethodTest.java | 1 + 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 @@ -33,12 +33,6 @@ package lib; * but that can also be any other event that hinders the test execution. */ 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. */ @@ -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 ); } @@ -64,18 +57,10 @@ public class StatusException extends RuntimeException { status = st; } - /** - * @return an exception, if this represents an exception Status, - * false otherwise. - */ - public Throwable getThrownException() { - return exceptionThrown; - } - /** * @return a status contained in the StatusException. */ public Status getStatus() { return status; } -} \ No newline at end of file +} -- cgit