| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| LockNotGrantedException |
|
| 1.0;1 |
| 1 | package org.odmg; | |
| 2 | ||
| 3 | ||
| 4 | ||
| 5 | ||
| 6 | ||
| 7 | /** | |
| 8 | ||
| 9 | * This exception is thrown if a lock could not be granted on an object. | |
| 10 | ||
| 11 | * @author David Jordan (as Java Editor of the Object Data Management Group) | |
| 12 | ||
| 13 | * @version ODMG 3.0 | |
| 14 | ||
| 15 | */ | |
| 16 | ||
| 17 | ||
| 18 | ||
| 19 | public class LockNotGrantedException extends ODMGRuntimeException | |
| 20 | ||
| 21 | { | |
| 22 | ||
| 23 | /* | |
| 24 | ||
| 25 | private Object o; | |
| 26 | ||
| 27 | private int m; | |
| 28 | ||
| 29 | * | |
| 30 | ||
| 31 | * Construct an instance of the exception. | |
| 32 | ||
| 33 | * @param obj The object that the application was trying to acquire a lock on. | |
| 34 | ||
| 35 | * @param mode The lock mode that the application was attempting to acquire. | |
| 36 | ||
| 37 | * @see org.odmg.Transaction#lock | |
| 38 | ||
| 39 | * | |
| 40 | ||
| 41 | public LockNotGrantedException(Object obj, int mode) | |
| 42 | ||
| 43 | { | |
| 44 | ||
| 45 | super(); | |
| 46 | ||
| 47 | o = obj; | |
| 48 | ||
| 49 | m = mode; | |
| 50 | ||
| 51 | } | |
| 52 | ||
| 53 | */ | |
| 54 | ||
| 55 | /* | |
| 56 | ||
| 57 | private Object o; | |
| 58 | ||
| 59 | private int m; | |
| 60 | ||
| 61 | * | |
| 62 | ||
| 63 | * Construct an instance of the exception. | |
| 64 | ||
| 65 | * @param obj The object that the application was trying to acquire a lock on. | |
| 66 | ||
| 67 | * @param mode The lock mode that the application was attempting to acquire. | |
| 68 | ||
| 69 | * @see org.odmg.Transaction#lock | |
| 70 | ||
| 71 | * | |
| 72 | ||
| 73 | public LockNotGrantedException(Object obj, int mode) | |
| 74 | ||
| 75 | { | |
| 76 | ||
| 77 | super(); | |
| 78 | ||
| 79 | o = obj; | |
| 80 | ||
| 81 | m = mode; | |
| 82 | ||
| 83 | } | |
| 84 | ||
| 85 | */ | |
| 86 | ||
| 87 | /* | |
| 88 | ||
| 89 | private Object o; | |
| 90 | ||
| 91 | private int m; | |
| 92 | ||
| 93 | * | |
| 94 | ||
| 95 | * Construct an instance of the exception. | |
| 96 | ||
| 97 | * @param obj The object that the application was trying to acquire a lock on. | |
| 98 | ||
| 99 | * @param mode The lock mode that the application was attempting to acquire. | |
| 100 | ||
| 101 | * @see org.odmg.Transaction#lock | |
| 102 | ||
| 103 | * | |
| 104 | ||
| 105 | public LockNotGrantedException(Object obj, int mode) | |
| 106 | ||
| 107 | { | |
| 108 | ||
| 109 | super(); | |
| 110 | ||
| 111 | o = obj; | |
| 112 | ||
| 113 | m = mode; | |
| 114 | ||
| 115 | } | |
| 116 | ||
| 117 | */ | |
| 118 | ||
| 119 | /** | |
| 120 | ||
| 121 | * Construct an instance of the exception. | |
| 122 | ||
| 123 | */ | |
| 124 | ||
| 125 | public LockNotGrantedException() | |
| 126 | ||
| 127 | { | |
| 128 | ||
| 129 | super(); | |
| 130 | ||
| 131 | } | |
| 132 | ||
| 133 | ||
| 134 | ||
| 135 | /** | |
| 136 | ||
| 137 | * Construct an instance of the exception with a descriptive message. | |
| 138 | ||
| 139 | * @param msg A description of the exception. | |
| 140 | ||
| 141 | */ | |
| 142 | ||
| 143 | public LockNotGrantedException(String msg) | |
| 144 | ||
| 145 | { | |
| 146 | ||
| 147 | super(msg); | |
| 148 | ||
| 149 | } | |
| 150 | ||
| 151 | /* | |
| 152 | ||
| 153 | private Object o; | |
| 154 | ||
| 155 | private int m; | |
| 156 | ||
| 157 | * | |
| 158 | ||
| 159 | * Construct an instance of the exception. | |
| 160 | ||
| 161 | * @param obj The object that the application was trying to acquire a lock on. | |
| 162 | ||
| 163 | * @param mode The lock mode that the application was attempting to acquire. | |
| 164 | ||
| 165 | * @see org.odmg.Transaction#lock | |
| 166 | ||
| 167 | * | |
| 168 | ||
| 169 | public LockNotGrantedException(Object obj, int mode) | |
| 170 | ||
| 171 | { | |
| 172 | ||
| 173 | super(); | |
| 174 | ||
| 175 | o = obj; | |
| 176 | ||
| 177 | m = mode; | |
| 178 | ||
| 179 | } | |
| 180 | ||
| 181 | */ | |
| 182 | ||
| 183 | } | |
| 184 |