01: package org.nemesis.forum.exception;
02:
03: /**
04: * @author dlaurent
05: *
06: * <p>there is a compile-time dependencies on the
07: * <code>java.lang.Exception</code> class, which changed between JDK 1.3 and
08: * JDK 1.4.</p>
09: */
10: //import java.io.PrintStream;
11: //import java.io.PrintWriter;
12: public class ForumException extends Exception {
13:
14: public ForumException() {
15: super ();
16: }
17:
18: public ForumException(String message) {
19: super (message);
20: }
21:
22: public ForumException(String message, Throwable cause) {
23: super (message, cause);
24: //super(message);
25: //this.nestedThrowable = cause;
26: }
27:
28: public ForumException(Throwable cause) {
29: super (cause);
30: //this.nestedThrowable = cause;
31: }
32:
33: // private Throwable nestedThrowable = null;
34: // public void printStackTrace() {
35: // super.printStackTrace();
36: // if (nestedThrowable != null) {
37: // nestedThrowable.printStackTrace();
38: // }
39: // }
40: //
41: // public void printStackTrace(PrintStream ps) {
42: // super.printStackTrace(ps);
43: // if (nestedThrowable != null) {
44: // nestedThrowable.printStackTrace(ps);
45: // }
46: // }
47: //
48: // public void printStackTrace(PrintWriter pw) {
49: // super.printStackTrace(pw);
50: // if (nestedThrowable != null) {
51: // nestedThrowable.printStackTrace(pw);
52: // }
53: // }
54:
55: }
|