I can't understand why the unlock method must throw RecordNotFoundException. My unlock signature looks like this: public void unlock(int recNo, long cookie) throws RecordNotFoundException, SecurityException;
Can someone help on this issue?
Jeroen T Wenting
posted 11 years ago
If you see no reason to ever throw it then don't... It's there for if you want it. You might for example check whether a record exists before trying to unlock it (mind I don't advise you do, it makes some things a lot more complex).