For the SecurityException my assignment says "Throws SecurityException if the record is locked with a cookie other than lockCookie." So I check the cookies and if they don't match throw the exception.
Thanks, Tom [ August 24, 2005: Message edited by: Tom Henricksen ]
Thomas Paul Bigbee
Joined: Jun 28, 2005
There is no such thing as a DuplicateKeyException - because there is no key. The interface being used is from a previous assignment from years ago, they just reused the interface, in the old project you wrote the record number back to the database (the record number being the key), so in fact you could have a duplicate key if you read the max record number, incremented it and tried to write it back (at the same exact time as someone else creating a new record), URLYBird, has no physical keys (record numbers), only logical keys (row numbers). I did not implement this exception because there was no way to throw it.