01: package org.odmg;
02:
03: /**
04: * This exception is thrown if a lock could not be granted on an object.
05: * @author David Jordan (as Java Editor of the Object Data Management Group)
06: * @version ODMG 3.0
07: */
08:
09: public class LockNotGrantedException extends ODMGRuntimeException {
10: /**
11: * Construct an instance of the exception.
12: */
13: public LockNotGrantedException() {
14: super ();
15: }
16:
17: /**
18: * Construct an instance of the exception with a descriptive message.
19: * @param msg A description of the exception.
20: */
21: public LockNotGrantedException(String msg) {
22: super (msg);
23: }
24: /*
25: private Object o;
26: private int m;
27: *
28: * Construct an instance of the exception.
29: * @param obj The object that the application was trying to acquire a lock on.
30: * @param mode The lock mode that the application was attempting to acquire.
31: * @see org.odmg.Transaction#lock
32: *
33: public LockNotGrantedException(Object obj, int mode)
34: {
35: super();
36: o = obj;
37: m = mode;
38: }
39: */
40: }
|