KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * $RCSfile: NoSuchRouteException.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 /**
18  * <p>Indicates a route does not exist or is invalid (cannot be reached).</p>
19  *
20  * @author Iain Shigeoka
21  */

22 public class NoSuchRouteException extends Exception JavaDoc {
23     private Throwable JavaDoc nestedThrowable = null;
24
25     public NoSuchRouteException() {
26         super();
27     }
28
29     public NoSuchRouteException(String JavaDoc msg) {
30         super(msg);
31     }
32
33     public NoSuchRouteException(Throwable JavaDoc nestedThrowable) {
34         this.nestedThrowable = nestedThrowable;
35     }
36
37     public NoSuchRouteException(String JavaDoc msg, Throwable JavaDoc nestedThrowable) {
38         super(msg);
39         this.nestedThrowable = nestedThrowable;
40     }
41
42     public void printStackTrace() {
43         super.printStackTrace();
44         if (nestedThrowable != null) {
45             nestedThrowable.printStackTrace();
46         }
47     }
48
49     public void printStackTrace(PrintStream JavaDoc ps) {
50         super.printStackTrace(ps);
51         if (nestedThrowable != null) {
52             nestedThrowable.printStackTrace(ps);
53         }
54     }
55
56     public void printStackTrace(PrintWriter JavaDoc pw) {
57         super.printStackTrace(pw);
58         if (nestedThrowable != null) {
59             nestedThrowable.printStackTrace(pw);
60         }
61     }
62 }
63
Popular Tags