For readRecord(), updateRecord(), deleteRecord(), I rethrow IOException as RecordNotFoundException. I am not sure how to handle IOEception exceptions for createRecord(). It only throws DuplicateKeyException (which never occur given the specs). Swallowing the IOException is bad but rethrow it as DuplicateKeyException is not correct. Any idea?
Rodrigo W Bonatto
posted 10 years ago
Maybe you can catch the IOException and swallowing it in a new class that extends RuntimeException. [ November 08, 2006: Message edited by: Rodrigo W Bonatto ]
SCJA, SCJP, SCJD, SCWCD, SCBCD5, SCDJWS, SCEA5
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads