• Post Reply Bookmark Topic Watch Topic
  • New Topic

CMP

 
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
Marshal
Posts: 35716
412
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!