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