001: package org.odmg;
002:
003: /**
004:
005: * This exception is thrown if a lock could not be granted on an object.
006:
007: * @author David Jordan (as Java Editor of the Object Data Management Group)
008:
009: * @version ODMG 3.0
010:
011: */
012:
013: public class LockNotGrantedException extends ODMGRuntimeException
014:
015: {
016:
017: /*
018:
019: private Object o;
020:
021: private int m;
022:
023: *
024:
025: * Construct an instance of the exception.
026:
027: * @param obj The object that the application was trying to acquire a lock on.
028:
029: * @param mode The lock mode that the application was attempting to acquire.
030:
031: * @see org.odmg.Transaction#lock
032:
033: *
034:
035: public LockNotGrantedException(Object obj, int mode)
036:
037: {
038:
039: super();
040:
041: o = obj;
042:
043: m = mode;
044:
045: }
046:
047: */
048:
049: /*
050:
051: private Object o;
052:
053: private int m;
054:
055: *
056:
057: * Construct an instance of the exception.
058:
059: * @param obj The object that the application was trying to acquire a lock on.
060:
061: * @param mode The lock mode that the application was attempting to acquire.
062:
063: * @see org.odmg.Transaction#lock
064:
065: *
066:
067: public LockNotGrantedException(Object obj, int mode)
068:
069: {
070:
071: super();
072:
073: o = obj;
074:
075: m = mode;
076:
077: }
078:
079: */
080:
081: /*
082:
083: private Object o;
084:
085: private int m;
086:
087: *
088:
089: * Construct an instance of the exception.
090:
091: * @param obj The object that the application was trying to acquire a lock on.
092:
093: * @param mode The lock mode that the application was attempting to acquire.
094:
095: * @see org.odmg.Transaction#lock
096:
097: *
098:
099: public LockNotGrantedException(Object obj, int mode)
100:
101: {
102:
103: super();
104:
105: o = obj;
106:
107: m = mode;
108:
109: }
110:
111: */
112:
113: /**
114:
115: * Construct an instance of the exception.
116:
117: */
118:
119: public LockNotGrantedException()
120:
121: {
122:
123: super ();
124:
125: }
126:
127: /**
128:
129: * Construct an instance of the exception with a descriptive message.
130:
131: * @param msg A description of the exception.
132:
133: */
134:
135: public LockNotGrantedException(String msg)
136:
137: {
138:
139: super (msg);
140:
141: }
142:
143: /*
144:
145: private Object o;
146:
147: private int m;
148:
149: *
150:
151: * Construct an instance of the exception.
152:
153: * @param obj The object that the application was trying to acquire a lock on.
154:
155: * @param mode The lock mode that the application was attempting to acquire.
156:
157: * @see org.odmg.Transaction#lock
158:
159: *
160:
161: public LockNotGrantedException(Object obj, int mode)
162:
163: {
164:
165: super();
166:
167: o = obj;
168:
169: m = mode;
170:
171: }
172:
173: */
174:
175: }
|