This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
jQuery in Action, 2nd edition
 
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?