• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

An Interface Design Question

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In an all java 2 environment a remote interface may throw any super class exception in place of RemoteException.Does this design make sense then. Construct an Interface which throws Exception, And the DataBaseException. Construct an Adapter class which which handles Data access using a boolean
inNetworkMode and then implements the methods and deals with the exceptions based on this boolean. In other words it seems to me the design requested seems to mandate a client that does not care if it is "remote" or not, so I wonder about the need for a RemoteException.
 
reply
    Bookmark Topic Watch Topic
  • New Topic