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

RemoteException and DatabaseException

 
lucy hu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, all,
I have an interface class DataServer which extends Remote, and DataServerImpl class implement all the methods defined in that interface, my question is, how can those methods in the DataServerImpl class throw DatabaseException or IOException other than RemoteException?
Regards
Lucy
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose you could add the exceptions you mention to the signatures of the methods in your interface or is that not allowed?
John
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic