posted 21 years ago
Hi all,
Objects of Data can throw DatabaseException, but via RMI Remote exceptions are thrown. I combined these by having DatabaseException extend RemoteException and have methods catch or throw DatabaseExceptions and at the same time (when RMI is being used) also handling the RemoteExceptions.
By passing the exceptions on really easy and catch them all in one place and still see where they originate from. Is this approach been used by others? Is there any criticism on combining the exceptions like this?
Regards,
Pander