Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

throwing IOException instead of RemoteException in Remote Methods

 
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
 
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
 
Normally trees don't drive trucks. Does this tiny ad have a license?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic