KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > TimeoutException


1 // $Id: TimeoutException.java,v 1.2 2005/01/07 22:44:46 ovidiuf Exp $
2

3 package org.jgroups;
4
5 import java.util.List JavaDoc;
6
7
8
9 public class TimeoutException extends Exception JavaDoc {
10     List JavaDoc failed_mbrs=null; // members that failed responding
11

12     public TimeoutException() {
13         super("TimeoutException");
14     }
15
16     public TimeoutException(String JavaDoc msg) {
17         super(msg);
18     }
19
20     public TimeoutException(List JavaDoc failed_mbrs) {
21         super("TimeoutException");
22         this.failed_mbrs=failed_mbrs;
23     }
24
25
26     public String JavaDoc toString() {
27         StringBuffer JavaDoc sb=new StringBuffer JavaDoc();
28
29         sb.append(super.toString());
30
31         if(failed_mbrs != null && failed_mbrs.size() > 0)
32             sb.append(" (failed members: ").append(failed_mbrs);
33         return sb.toString();
34     }
35 }
36
Popular Tags