Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Max Habibi - DBClient

 
bob dapaah
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a short question:
The DBClient class detailed in the Developer book by M. Habibi doesn't seem to throw RemoteException for its methods.
This causes problems when trying to to compile the implementation class for the Remote interface extending DBClient.
Would it be correct (in terms of design) to amend the abstract methods in DBClient to throw RemoteException so that this exception can be thrown in the above-mentioned implementation class? Is the omission of 'RemoteException' from the DBClient interface a typo or am I missing something?
Thanks in advance
Bob
 
Qusay Jaafar
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I compiled the sampleproject in the book. Everything was fine. I don't know what happens in your case...
Regards
 
bob dapaah
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My mistake...DBClient's methods throw IOException thereby alowing the methods from the implementation class for the remote interface to throw RemoteException (a subclass).
Didn't think it through at the time of asking the question I guess
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic