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 -> Re: java error handling question

Re: java error handling question

From: Ron <support_at_dbainfopower.com>
Date: Wed, 11 Feb 2004 02:07:43 -0800
Message-ID: <kqKdndRbpLXnYLTdRVn-uQ@comcast.com>

Hello JL,

  Actually this is a good question for a java group.

  The way to do it is to:

  1. catch Exception, or SQLException
  2. Write output of exception functions printStackTrace() and/or getMessage() to file.

Regards,

  Ron
  DBA Infopower
  http://www.dbainfopower.com
  Standard disclaimer:
http://www.dbainfopower.com/dbaip_advice_disclaimer.html

"John Leslie" <johnleslie_at_madasafish.com> wrote in message news:4412dd31.0402110124.31960fc6_at_posting.google.com...
> I have the following segment java code in a stored procedure.
>
> I am getting a rc of 3.
>
> How can I print details of the java exception to a file?
>
> try {
> rc = p.waitFor();
> } catch (InterruptedException intexc) { rc = 2; }
>
> } catch (Throwable t) { rc = 3; }
>
> JL
Received on Wed Feb 11 2004 - 04:07:43 CST

Original text of this message

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