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 -> EXCEPTION : it's possibile obtain procedure and line ?

EXCEPTION : it's possibile obtain procedure and line ?

From: Sbaiz <pierluigi.sbaiz_at_elsag.it>
Date: 17 Jul 1998 15:32:04 GMT
Message-ID: <01bdb198$ecbc9850$b8cd5997@sbaiz>


Hi everyone

In an EXCEPTION, is it possibile obtain (for example from SQLCA) the name of the procedure and/or the line where there is the problem?

For example, if my procedure is:

PROCEDURE get_imp IS
BEGIN        compute_users;
   compute_customers;

EXCEPTION
    WHEN OTHER THEN

          err_line = SQLCA.get_line();   /*** it's an example ***/
          err_procedure = SQL.get.procedure()

END then

    err_procedure = get_imp
    err_line = 83
if the exception occour into get_imp procedure at line 83

    err_procedure = compute_users
    err_line = 323
if the exception occour into compute_users at line 323 and so on ...

Thanks in advance
Sbaiz P. Received on Fri Jul 17 1998 - 10:32:04 CDT

Original text of this message

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