throwing IOException instead of RemoteException in Remote Methods

harcharan kanwal

Ranch Hand

Posts: 64

posted 15 years ago

hi all, can you throw IOException instead of RemoteException in remote method signatures of Remote Interface.IOException is the super class RemoteException I got it tested , it was working fine.Or do i have to throw the RemoteException in the method signatures of Remote Interface to fullfill the requirement of a remote object. any comments would be appreciated kanwal

veron luis

Greenhorn

Posts: 5

posted 15 years ago

Hi,IOException and RemoteException were included in the Java API with there own unique usefullness. as defined in the specsIOException - general class of exceptions produced by failed or interrupted I/O operations. RemoteException - common superclass for a number of communication-related exceptions that may occur during the execution of a remote method call Use either of these 2 exception based on their definitions. Cheers, luis