posted 16 years ago
Hi,
you cannot modify the contract (your interface), so no you cannot throw your IOException.
What else then? subclass of the Exception type your Interface allows you... runtime exception... handling it at the db layer...
There are tones of threads on this subject..
The choices are not infinite, but they come down to design choices. If you search on the forum, you'll see the most common solution...
I think most of people choose to throw a runtime exception, which does not go against your contract..
Rgrds,
Alex