Albert Chow wrote:
>
> Hi,
>
> But when the error is no such table or view, ObjectNotFoundException is
> also raised.
In that case you should talk to your CMP vendor and request an enhancement.
> Albert
>
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Evan Ireland
> Sent: Tuesday, November 07, 2000 10:16 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How to catch different finder exception
>
> 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".
>
> ===========================================================================
> 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".