01: /* PotentialDeadLockException.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Fri Dec 5 10:53:52 2003, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2003 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.lang;
20:
21: /**
22: * Denote a potential dead lock might occur.
23: * More precisely, it occurs if a transaction is waiting a lock too long.
24: *
25: * <p>How it happens:<br>
26: * Transaction A writes bean X and transaction B writes bean Y, and then
27: * A tries to read or write bean Y and B tries to read or write bean X.
28: *
29: * <p>This exception shall be rare, because CmpManager sorted beans to
30: * be updated in a special order. However, it still might happen, because
31: * a transaction might trigger multiple syncBeans.
32: *
33: * @author tomyeh
34: */
35: public class PotentialDeadLockException extends OperationException {
36: public PotentialDeadLockException(String msg, Throwable cause) {
37: super (msg, cause);
38: }
39:
40: public PotentialDeadLockException(String s) {
41: super (s);
42: }
43:
44: public PotentialDeadLockException(Throwable cause) {
45: super (cause);
46: }
47:
48: public PotentialDeadLockException() {
49: }
50:
51: public PotentialDeadLockException(int code, Object[] fmtArgs,
52: Throwable cause) {
53: super (code, fmtArgs, cause);
54: }
55:
56: public PotentialDeadLockException(int code, Object fmtArg,
57: Throwable cause) {
58: super (code, fmtArg, cause);
59: }
60:
61: public PotentialDeadLockException(int code, Object[] fmtArgs) {
62: super (code, fmtArgs);
63: }
64:
65: public PotentialDeadLockException(int code, Object fmtArg) {
66: super (code, fmtArg);
67: }
68:
69: public PotentialDeadLockException(int code, Throwable cause) {
70: super (code, cause);
71: }
72:
73: public PotentialDeadLockException(int code) {
74: super(code);
75: }
76: }
|