Source code: org/odmg/LockNotGrantedException.java
1 package org.odmg;
2
3 /**
4 * This exception is thrown if a lock could not be granted on an object.
5 * @author David Jordan (as Java Editor of the Object Data Management Group)
6 * @version ODMG 3.0
7 */
8
9 public class LockNotGrantedException extends ODMGRuntimeException
10 {
11 /*
12 private Object o;
13 private int m;
14 *
15 * Construct an instance of the exception.
16 * @param obj The object that the application was trying to acquire a lock on.
17 * @param mode The lock mode that the application was attempting to acquire.
18 * @see org.odmg.Transaction#lock
19 *
20 public LockNotGrantedException(Object obj, int mode)
21 {
22 super();
23 o = obj;
24 m = mode;
25 }
26 */
27 /*
28 private Object o;
29 private int m;
30 *
31 * Construct an instance of the exception.
32 * @param obj The object that the application was trying to acquire a lock on.
33 * @param mode The lock mode that the application was attempting to acquire.
34 * @see org.odmg.Transaction#lock
35 *
36 public LockNotGrantedException(Object obj, int mode)
37 {
38 super();
39 o = obj;
40 m = mode;
41 }
42 */
43 /*
44 private Object o;
45 private int m;
46 *
47 * Construct an instance of the exception.
48 * @param obj The object that the application was trying to acquire a lock on.
49 * @param mode The lock mode that the application was attempting to acquire.
50 * @see org.odmg.Transaction#lock
51 *
52 public LockNotGrantedException(Object obj, int mode)
53 {
54 super();
55 o = obj;
56 m = mode;
57 }
58 */
59 /**
60 * Construct an instance of the exception.
61 */
62 public LockNotGrantedException()
63 {
64 super();
65 }
66
67 /**
68 * Construct an instance of the exception with a descriptive message.
69 * @param msg A description of the exception.
70 */
71 public LockNotGrantedException(String msg)
72 {
73 super(msg);
74 }
75 /*
76 private Object o;
77 private int m;
78 *
79 * Construct an instance of the exception.
80 * @param obj The object that the application was trying to acquire a lock on.
81 * @param mode The lock mode that the application was attempting to acquire.
82 * @see org.odmg.Transaction#lock
83 *
84 public LockNotGrantedException(Object obj, int mode)
85 {
86 super();
87 o = obj;
88 m = mode;
89 }
90 */
91 }