01: // Copyright © 2002-2005 Canoo Engineering AG, Switzerland.
02: package com.canoo.webtest.reporting;
03:
04: public final class ReportCreationException extends Exception {
05: private final Throwable fInitialThrowable;
06:
07: public ReportCreationException(String s) {
08: this (s, null);
09: }
10:
11: public ReportCreationException(Throwable initialThrowable) {
12: this (initialThrowable.getMessage(), initialThrowable);
13: }
14:
15: private ReportCreationException(String s, Throwable initialThrowable) {
16: super (s);
17: fInitialThrowable = initialThrowable;
18: }
19:
20: public Throwable getInitialThrowable() {
21: return fInitialThrowable;
22: }
23: }
|