• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI and exception propagation

 
Karl Fu
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I am new to this forum and I have just started on my assignment.
Will exceptions from server propagated through RMI to the client ?
I wanta know if I should catch the Database exception at my DataDBImpl class. I don't really want to declare the DataBase exception in my interface class because i think it will make the interface to be become less "general"
Please give me some feedback,
Thank you
 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel the application should notify all errors to users. They should be aware the application is no longer fully functional due to some error.
 
Karl Fu
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So it means that exception does propagate from server to client through rmi and I should catch the exception in my swing client, am i correct ?
 
Doug Melzer
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, for instance if you attempt to modify a record that has been deleted you would want to notify your user, so that they'll know why the modification failed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic