01: /**************************************************************************/
02: /* NICE Testsuite */
03: /* A testsuite for the Nice programming language */
04: /* (c) Alex Greif 2002 */
05: /* */
06: /* This program is free software; you can redistribute it and/or modify */
07: /* it under the terms of the GNU General Public License as published by */
08: /* the Free Software Foundation; either version 2 of the License, or */
09: /* (at your option) any later version. */
10: /* */
11: /**************************************************************************/package nice.tools.testsuite;
12:
13: /**
14: * Nice TestSuite specific exception, that holds a reference to the original exception.
15: *
16: * @author Alex Greif <a href="mailto:alex.greif@web.de">alex.greif@web.de</a>
17: * @version $Id: TestSuiteException.java,v 1.5 2003/02/19 18:30:18 bonniot Exp $
18: */
19: public class TestSuiteException extends Exception {
20:
21: Throwable _cause;
22:
23: public TestSuiteException(String message) {
24: super (message);
25: }
26:
27: public TestSuiteException(String message, Throwable cause) {
28: super (message);
29: _cause = cause;
30: }
31:
32: public Throwable getCause() {
33: return _cause;
34: }
35:
36: public void printStackTrace() {
37: super .printStackTrace();
38: if (_cause != null)
39: _cause.printStackTrace();
40:
41: }
42:
43: }
44:
45: // Local Variables:
46: // tab-width: 2
47: // End:
|