You should never use exception description in program!!!
1) exception type -> for program
2) exception stacktrace -> for programmer
3) exception message -> for user
Better should be to made descendants of RecordNotFoundException.
Oh, now I see description is parameter, but generaly this so called "enumerated exceptions" are bad idea. I would prefer something like
for(int i = 0; i < getRawRecordCount(); i++). Yes just after cycle ends the new record can be added, but this can happen in your code too. There is no chance (if you do not lock whole db for find) to avoid this - it is a real world

[ April 05, 2006: Message edited by: Petr Hejl ]