The interface I was given in my assignment throws a SecurityException in the update, delete and unlock method.
The description says "..if the record is locked with a cookie other than lockCookie".
My first thought was to use java.lang.SecurityException, but this is a runtime Exception and I believe it is bad practice to throw a runtime exception in the middle of the code?
I do no see any benefits of making your own SecurityException class; but for DuplicatedException and RecordNotFoundException class you should make your own.
I play Java for fun.<br /> <br />SCJP / SCJD / SCWCD / SCBCD
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.