Remote methods can only throw RemoteExceptions.
You then have 2 options:
- Wrap your exception in a RemoteException. (Use 'Cause' in the RemoteException)
- For your own Exceptions, you can let them extend the RemoteException, which will allow your class to throw them without breaching the interface.
Hope that helped.