Would it make sense to modify the DatabaseException so that it extended IOException. That way you could declare the DataInterface methods so that they only threw IOException instead of both RemoteException and DatabaseException. The reason I say this is at the moment the client has to have code to deal with RemoteExceptions even when running in local mode when they would never be thrown.
John Smith
Ranch Hand
Joined: Oct 08, 2001
Posts: 2937
posted
0
The reason I say this is at the moment the client has to have code to deal with RemoteExceptions even when running in local mode when they would never be thrown.
Your client may throw a subset of exceptions in the interface. Eugene.
And in the remote implemetation of your interface, you can wrap these RemoteExceptions into a DataBaseException and throw that instead so that your client only needs to catch DataBaseExceptions. Mark