wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes throwing IOException  instead of RemoteException in Remote Methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "throwing IOException  instead of RemoteException in Remote Methods" Watch "throwing IOException  instead of RemoteException in Remote Methods" New topic
Author

throwing IOException instead of RemoteException in Remote Methods

harcharan kanwal
Ranch Hand

Joined: Jul 02, 2001
Posts: 64
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

Joined: Aug 16, 2001
Posts: 5
Hi,
IOException and RemoteException were included in the Java API with there own unique usefullness.
as defined in the specs
IOException - 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: throwing IOException instead of RemoteException in Remote Methods
 
Similar Threads
RMI question
FBN : Exception in High level Data Interface
NX: RMI interface
Function name requirement !
How to throw RemoteException?