Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: nice/tools/testsuite/TestSuiteException.java


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