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 -> Exit from an Exception Block

Exit from an Exception Block

From: Richard Elliott <Richard.A.Elliott_at_wgp.twc.com>
Date: Tue, 11 Aug 1998 19:27:58 GMT
Message-ID: <35D09C92.12E8@wgp.twc.com>


I have a large number of pl/sql programs that all have exception blocks coded in them. I want to cause the programs to exit with a specific return code any time an exception is raised. Why doesn't the "exit 12" stmt work in the exception block. Also it seems that when you have an exception block the "whenever sqlerror exit nn" stmt does not work.

I can code an "exit 12" after each "raise" stmt but this doesn't catch the "Others" situations that have no specific raise stmt.

Thanks in advance for your help. Received on Tue Aug 11 1998 - 14:27:58 CDT

Original text of this message

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