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

Home -> Community -> Usenet -> c.d.o.misc -> Re: user defined exception.

Re: user defined exception.

From: Ed prochak <ed.prochak_at_ALLTEL.COM>
Date: 24 Jan 2002 09:48:54 -0800
Message-ID: <2b4a2940.0201240948.768077c0@posting.google.com>


"Daniel A. Morgan" <damorgan_at_exesolutions.com> wrote in message news:<3C4D5E9C.17D42A7E_at_exesolutions.com>...
> This is remarkably easy:
>
> CREATE OR REPLACE PROCEDURE xyz IS
>
> x PLS_INTEGER;
> rtfm EXCEPTION;
>
> BEGIN
> SELECT COUNT(1)
> INTO x
> FROM dual;
>
> IF x > 1 THEN
> RAISE rtfm;
> END IF;
>
> EXCEPTION
> WHEN rtfm THEN
> DBMS_OUPUT.PUT_LINE('Another User Did Not RTFM');
> WHEN OTHER THEN
> DBMS_OUPUT.PUT_LINE('Something Else Happened');
>
> END;
> /
>
>
> Daniel Morgan
>

I love your choice of exception name!!! Received on Thu Jan 24 2002 - 11:48:54 CST

Original text of this message

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