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 9 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 ]