KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nemesis > forum > exception > ForumException


1 package org.nemesis.forum.exception;
2
3 /**
4  * @author dlaurent
5  *
6  * <p>there is a compile-time dependencies on the
7  * <code>java.lang.Exception</code> class, which changed between JDK 1.3 and
8  * JDK 1.4.</p>
9  */

10 //import java.io.PrintStream;
11
//import java.io.PrintWriter;
12

13 public class ForumException extends Exception JavaDoc {
14
15     public ForumException() {
16         super();
17     }
18
19     public ForumException(String JavaDoc message) {
20         super(message);
21     }
22
23     public ForumException(String JavaDoc message, Throwable JavaDoc cause) {
24         super(message, cause);
25         //super(message);
26
//this.nestedThrowable = cause;
27
}
28
29     public ForumException(Throwable JavaDoc cause) {
30         super(cause);
31         //this.nestedThrowable = cause;
32
}
33
34 // private Throwable nestedThrowable = null;
35
// public void printStackTrace() {
36
// super.printStackTrace();
37
// if (nestedThrowable != null) {
38
// nestedThrowable.printStackTrace();
39
// }
40
// }
41
//
42
// public void printStackTrace(PrintStream ps) {
43
// super.printStackTrace(ps);
44
// if (nestedThrowable != null) {
45
// nestedThrowable.printStackTrace(ps);
46
// }
47
// }
48
//
49
// public void printStackTrace(PrintWriter pw) {
50
// super.printStackTrace(pw);
51
// if (nestedThrowable != null) {
52
// nestedThrowable.printStackTrace(pw);
53
// }
54
// }
55

56 }
57
Popular Tags