Hi,
What do you guys think of this:
+------------------
| DB <<interface>>
+==================
+------------------
| read() throws OneException
+---------------------------
^
|
|
+------
| Data
+======
+------
| read() throws OneException, ARuntimeException
+----------------------------------------------
The Question is: Can I declare that Data is throwing a RuntimeException in its public interface even though the supplied DB interface doesn't? OR should I just leave the declaration out of the Data class (i'm throwing the RuntimeException anyway, to handle some errors that occur within the Data class).
[ May 13, 2007: Message edited by: Bod Toki ]
[ May 13, 2007: Message edited by: Bod Toki ]