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

NX: RMI, Exceptions

 
Peter Kovgan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My "contractors" throw RecordNotFoundException from data base.
This exceptions(classes of exceptions) MUST to be in suncertify.db package.
In RMI mode client has not direct contact to data base.
So client does not "see" these exceptions?
Or client (even in RMI mode) can import Exeptions Classes from suncertify.db ?
 
Vlad Rabkin
Ranch Hand
Posts: 555
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,
Or client (even in RMI mode) can import Exeptions Classes from suncertify.db ?

Defenetly YES: It can and should do so.
Your client can chain the RecordNotFoundException into a GUIRecordNotFoundException or any other exception if you want to. The point is that the client class, responsible for communication with database should import RecordNotFoundException in any way, if the database interface is declared to throw a RecordNotFoundException.

Best,
Vlad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic