1 3 4 package org.jgroups.blocks; 5 6 import java.util.Map ; 7 8 9 public class LockingException extends Exception { 10 Map failed_lockers=null; 12 public LockingException(String msg) { 13 super(msg); 14 } 15 16 public LockingException(Map m) { 17 super("LockingException"); 18 failed_lockers=m; 19 } 20 21 22 public String toString() { 23 StringBuffer sb=new StringBuffer (); 24 25 sb.append(super.toString()); 26 27 if(failed_lockers != null && failed_lockers.size() > 0) 28 sb.append(" (failed members: ").append(failed_lockers); 29 return sb.toString(); 30 } 31 32 } 33 | Popular Tags |