Use javax.ejb.ObjectNotFoundException for no record found (it is a subclass
of javax.ejb.FinderException).

Albert Chow wrote:
>
> Hi,
>
>     When I use FindByPrimaryKey method to lookup a CMP bean, there're
> several reasons for me to get a finder exception.  Like one is due to no
> record found and the other is due to no such table or view.  Because no
> record found is indeed not an error but no such table or view is an error, I
> got to distinguish one from the other.  But how can I do it??  Please help.
> Thanx in advance.
>
> Albert
>
> ===========================================================================
> 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".

--
________________________________________________________________________________

Evan Ireland              Sybase EAServer Engineering        [EMAIL PROTECTED]
                            Wellington, New Zealand               +64 4 934-5856

===========================================================================
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