1 3 package org.jgroups; 4 5 import java.util.List ; 6 7 8 9 public class TimeoutException extends Exception { 10 List failed_mbrs=null; 12 public TimeoutException() { 13 super("TimeoutException"); 14 } 15 16 public TimeoutException(String msg) { 17 super(msg); 18 } 19 20 public TimeoutException(List failed_mbrs) { 21 super("TimeoutException"); 22 this.failed_mbrs=failed_mbrs; 23 } 24 25 26 public String toString() { 27 StringBuffer sb=new StringBuffer (); 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 |