Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RemoteException and DatabaseException  RSS feed

 
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
Boost this thread!