Hi

Evan Ireland wrote:

> It's a subclass of javax.ejb.FinderException, which you are supposed
> to throw if the object no longer exists in the persistent store.

I dont see any use for this exception class. The doc says that only finders which
return a single EJB object should throw this exception (if that object does not
exist). This means such finders can not throw FinderException ("No", says the spec)!

OK. I have findByPrimaryKey(MyPK) method. If there are no rows with such value,
should I throw FinderException (because the object was not found), or
ObjectNotFoundException (because the object does not exist)!

Thanks.

--
shiv
[EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to