Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Why isn't it catching it?

Re: Why isn't it catching it?

From: Terrence Wong <terrence_at_asiansources.com>
Date: Tue, 11 May 1999 16:43:36 +0800
Message-ID: <3737EDB8.2DF67374@asiansources.com>


Hi wei,

To be on the safe end, you can try adding another exception, "WHEN OTHERS". This usually traps anything that fails suddenly.

EXCEPTION
   WHEN NO_DATA_FOUND THEN
        htp.p('Error: No data Found');

   WHEN OTHERS THEN
        htp.p('Error: The bug stops here');

Terrence

wweng_at_ei.org wrote:
>
> I have the following query:
>
> SELECT id INTO custid FROM www_cust.customer_data WHERE username = uname
> AND passwd = passwd;
>
> and the exception:
>
> EXCEPTION
>
> WHEN NO_DATA_FOUND THEN
> ....
>
> But somehow when there is no row returned, the exception is not being caught.
>
> Is there any explanation for this? And how can i fix it to let it catch
> the exception again?
>
> Thanks in advance.
>
> wei
Received on Tue May 11 1999 - 03:43:36 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US