KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jivesoftware > messenger > SessionNotFoundException


1 /**
2  * $RCSfile: SessionNotFoundException.java,v $
3  * $Revision: 1.2 $
4  * $Date: 2004/10/25 23:41:56 $
5  *
6  * Copyright (C) 2004 Jive Software. All rights reserved.
7  *
8  * This software is published under the terms of the GNU Public License (GPL),
9  * a copy of which is included in this distribution.
10  */

11
12 package org.jivesoftware.messenger;
13
14 import java.io.PrintStream JavaDoc;
15 import java.io.PrintWriter JavaDoc;
16
17 public class SessionNotFoundException extends Exception JavaDoc {
18     private Throwable JavaDoc nestedThrowable = null;
19
20     public SessionNotFoundException() {
21         super();
22     }
23
24     public SessionNotFoundException(String JavaDoc msg) {
25         super(msg);
26     }
27
28     public SessionNotFoundException(Throwable JavaDoc nestedThrowable) {
29         this.nestedThrowable = nestedThrowable;
30     }
31
32     public SessionNotFoundException(String JavaDoc msg, Throwable JavaDoc nestedThrowable) {
33         super(msg);
34         this.nestedThrowable = nestedThrowable;
35     }
36
37     public void printStackTrace() {
38         super.printStackTrace();
39         if (nestedThrowable != null) {
40             nestedThrowable.printStackTrace();
41         }
42     }
43
44     public void printStackTrace(PrintStream JavaDoc ps) {
45         super.printStackTrace(ps);
46         if (nestedThrowable != null) {
47             nestedThrowable.printStackTrace(ps);
48         }
49     }
50
51     public void printStackTrace(PrintWriter JavaDoc pw) {
52         super.printStackTrace(pw);
53         if (nestedThrowable != null) {
54             nestedThrowable.printStackTrace(pw);
55         }
56     }
57 }
58
Popular Tags