Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

throwing IOException instead of RemoteException in Remote Methods

 
harcharan kanwal
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic