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 -> Raising exceptions from PLSQL to Java

Raising exceptions from PLSQL to Java

From: <billmil_at_my-deja.com>
Date: Thu, 30 Dec 1999 17:58:07 GMT
Message-ID: <84g5q9$sfj$1@nnrp1.deja.com>


Can a PL/SQL program raise an exception to a calling Java program (i.e. running on the server)?

I've tried using both RAISE and RAISE_APPLICATION_ERROR in the exception handling section of the PLSQL code. Neither seems to work.

Any suggestions?

Example PLSQL code:
  EXCEPTION
    WHEN OTHERS

       THEN BEGIN
           RAISE_APPLICATION_ERROR (-2001, SQLERRM);
      END;

thanks.

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Thu Dec 30 1999 - 11:58:07 CST

Original text of this message

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