🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Plx help...handle more then one exception in procedure individually

#11204
From: NEWBIES
Date: Wed, 11 Dec 2002 03:11
22 lines
1550 bytes
I wish to catch and handle exception in procedure individually, I do the
following:
------------------------------------------------
When any do
Begin
   if (GDSCODE = unique_key_violation) then
        exit;
   if (GDSCODE = arith_except) then
        exit;
End
------------------------------------------------
The Error window tells
"Dynamic SQL Error
SQL error code = -104
Token unknown - line 16, char 11
GDSCODE"

p.s:  If there is alternative way suggested such as query system tables for
error code..etc..I will aalso welcome.   What I need here is to ignore this
two exception.
Please help.  Thank you very much inadvance
Newbies
Technical Details
Message-ID: <3df6acfa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114a0e,cc45f2102473616f,start
X-Google-Attributes: gid114a0e,public
X-Google-ArrivalTime: 2002-12-10 19:15:56 PST
From: "NEWBIES" <newbies@netvigator.com>
Newsgroups: borland.public.interbase.sql
Subject: Plx help...handle more then one exception in procedure individually
Date: Wed, 11 Dec 2002 11:11:58 +0800
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 218.102.251.11
Message-ID: <3df6acfa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1039576314 218.102.251.11 (10 Dec 2002 19:11:54 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail