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

CMP  RSS feed

 
Ramya Dhurga
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there are no records in the table.i am trying to retrieve the values using find by methods.Any way it is going to throw the exception in server. How to catch this exception while executing the client program.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37230
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramya,
You would get an exception if calling find by primary key. Any other finders will just return an empty list. If you are calling find by primary key, just catch the FinderException.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!