Annotate a remote method or interface to specify what exception is to be used for indicating
a remote call failure. By default, that exception is
RemoteException, and it (or a
superclass) must be declared to be thrown.
-
Optional Element Summary
Optional Elements
-
Element Details
-
exception
Specify the exception to throw when the remote call fails.- Default:
- org.cojen.dirmi.RemoteException.class
-
declared
boolean declaredBy default, if the exception is checked, it must be declared to be thrown. Set to false to allow the exception to be thrown without being declared.- Default:
- true
-