1 3 9 10 package org.jboss.cache.lock; 11 12 import org.jboss.cache.CacheException; 13 14 import java.util.Map ; 15 16 17 28 29 public class LockingException extends CacheException 30 { 31 32 private static final long serialVersionUID = 5551396474793902133L; 33 34 37 Map failed_lockers = null; 38 39 public LockingException() 40 { 41 super(); 42 } 43 44 public LockingException(Map failed_lockers) 45 { 46 super(); 47 this.failed_lockers = failed_lockers; 48 } 49 50 public LockingException(String msg) 51 { 52 super(msg); 53 } 54 55 public LockingException(String msg, Map failed_lockers) 56 { 57 super(msg); 58 this.failed_lockers = failed_lockers; 59 } 60 61 public LockingException(String msg, Throwable cause) 62 { 63 super(msg, cause); 64 } 65 66 public LockingException(String msg, Throwable cause, Map failed_lockers) 67 { 68 super(msg, cause); 69 this.failed_lockers = failed_lockers; 70 } 71 72 public String toString() 73 { 74 String retval = super.toString(); 75 if (failed_lockers != null && failed_lockers.size() > 0) 76 retval = retval + ", failed lockers: " + failed_lockers; 77 return retval; 78 } 79 80 } 81 | Popular Tags |