🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #1031

Re: Error Handling in Stored Procedures

#1031
From: Patrick Moloney
Date: Sun, 18 Mar 2007 16:47
28 lines
2104 bytes
Bill Todd wrote:

> I have never tried the following but it might work.
> 
> WHEN ANY DO
>   INSERT INTO LOGTBL (ERRORCODE) VALUES (GDSCODE);
> 
> You are correct that there is no way using SQL to get the message text
> that corresponds to an error code. The error messages are not stored
> in a system table.

My needs for purposes of this thread are to process IB Exceptions that
I have created and which are activated during user processing.  I'm not
trying to handle "Harder" errors resulting in SQLCODE errors or IB
errors in this case.  At lease the IB Exception message texts are in
the system tables.  I wish the message text was automatically returned
and available for processing.  And, I wish I didn't have to explicitly
list each Exception I want to handle.  This certainly leaves room for
error.

I'll post to the IBX group to see if anyone knows how to capture what
is displayed to the user during interactive processing.  That must get
something from the Embedded capabilities - although I'm trying to
handle it in a stored procedure.


-- 
Patrick Moloney
Technical Details
Message-ID: <45fd5efb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.germany.com!newsfeed.datemas.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <45fb1f50$1@newsgroups.borland.com> <45fb39ab$1@newsgroups.borland.com> <45fbe299$1@newsgroups.borland.com> <45fc2ffc@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,16fac437688a8716
X-Google-Attributes: gid114a0e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Patrick Moloney" <NewsID*at*SandrockSoftware.c*o*m>
Subject: Re: Error Handling in Stored Procedures
Newsgroups: borland.public.interbase.sql
Reply-To: "Patrick Moloney" <NewsID@SandrockSoftware.com>
References: <45fb1f50$1@newsgroups.borland.com> <45fb39ab$1@newsgroups.borland.com> <45fbe299$1@newsgroups.borland.com> <45fc2ffc@newsgroups.borland.com>
User-Agent: XanaNews/1.18.1.3
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 151.204.132.253
Message-ID: <45fd5efb$1@newsgroups.borland.com>
Date: 18 Mar 2007 08:47:07 -0800
X-Trace: newsgroups.borland.com 1174232827 151.204.132.253 (18 Mar 2007 08:47:07 -0800)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.germany.com!newsfeed.datemas.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail