• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception when using Remote?

 
Kalichar Rangantittu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When accessing the database using RMI, should the remote connection/IMPL throw DatabaseException, or simply embedd the DatabaseException in a RemoteException.detail??? Whats the better way to do it?
 
Rajesh Matti
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Throwing DatabaseException. In the othercase you will have to do some 'if's to find out what kind of exception was the RemoteException contined. I prefer to use as less 'if's as possible in my OOP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic