01: // $Id: LockingException.java,v 1.1.1.1 2003/09/09 01:24:08 belaban Exp $
02:
03: package org.jgroups.blocks;
04:
05: import java.util.Map;
06:
07: public class LockingException extends Exception {
08: Map failed_lockers = null; // list of members who failed acquiring locks (keys=Address, values=exception string)
09:
10: public LockingException(String msg) {
11: super (msg);
12: }
13:
14: public LockingException(Map m) {
15: super ("LockingException");
16: failed_lockers = m;
17: }
18:
19: public String toString() {
20: StringBuffer sb = new StringBuffer();
21:
22: sb.append(super .toString());
23:
24: if (failed_lockers != null && failed_lockers.size() > 0)
25: sb.append(" (failed members: ").append(failed_lockers);
26: return sb.toString();
27: }
28:
29: }
|