| Author |
handling of flag-values different from the well-defined ones
|
Andy Jung
Ranch Hand
Joined: Feb 07, 2010
Posts: 150
|
|
Howdy ranchers,
my specification mandates to throw a RecordNotFoundException, if either the specified record cannot be found or has a deleted-flag.
Actually the assignment defines two different values for the short flag:
0x0000 = valid0x0080 = deleted
What, if due to some mysterious failure to hard drive, the flag I receive turns out to be neither one of those specified?
Is it legal to also throw a RecordNotFoundException in this special case? Or does it have to be one of a different type to exactly match the specification? Or is it better to ignore this problem at all?
Regards,
Andy
|
SCJP, SCJD
|
 |
Roel De Nijs
Bartender
Joined: Jul 19, 2004
Posts: 4351
|
|
Hi Andy,
I only did the following check
I think taking care with hard disk failures is a bridge (maybe even 2 or 3) too far.
Kind regards,
Roel
|
SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
|
 |
 |
|
|
subject: handling of flag-values different from the well-defined ones
|
|
|