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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Exceptions

RE: Exceptions

From: Vergara, Michael (TEM) <mvergara_at_guidant.com>
Date: Thu, 23 Aug 2001 07:56:44 -0700
Message-ID: <F001.003752E9.20010823080615@fatcity.com>

Leo:

Just nest your PL/SQL command inside a BEGIN...END block that has a WHEN OTHERS THEN NULL statement in the EXCEPTIONS block. You can nest PL/SQL to a surprising depth.

This example is pseudo-code:

BEGIN
  LOOP
    BEGIN
      PL/SQL Statement(s) that may throw an exception;     EXCEPTION

      WHEN OTHERS THEN
        NULL;

    END;
  END LOOP;
END; You could also create a separate procedure with the offending code and have it absorb the exception.

HTH,
Mike

---
===========================================================================
Michael P. Vergara
Oracle DBA
Guidant Corporation

(909) 914-2304
-----Original Message----- Sent: Thursday, August 23, 2001 1:21 AM To: Multiple recipients of list ORACLE-L Hi everyoene, Is there any way I could cause my pl/sql to proceed with executuion when an exception is raised? Im thinking of a kind of 'On Error Resume Next' thing we've got in VB. Ive got a loop and I need to continue executing the code in the loop after when an exception is raised and after I do some processing in the exception block.Pls send me your suggestions. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Vergara, Michael (TEM) INET: mvergara_at_guidant.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Thu Aug 23 2001 - 09:56:44 CDT

Original text of this message

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