🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3143

Try Catch(...)

#3143
From: EnGi
Date: Wed, 20 Nov 2002 15:39
10 lines
1308 bytes
Hi,

I use a TADOCommand to update my records, in a MSAccess database.
When there is an error during update execution, I obtain an exception.
I intercept this exception with a try .. catch(...) block.

How could I know the exception origin to have differents reactions with it ?
I mean for example a doublon error or something else.

Thanks for help
Technical Details
Message-ID: <3ddbadd6$0$18229$626a54ce@news.free.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!proxad.net!feeder2-1.proxad.net!news1-1.free.fr!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,20f9fc3a5e8035ab,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-11-20 07:46:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!proxad.net!feeder2-1.proxad.net!news1-1.free.fr!not-for-mail
From: "EnGi" <engi@free.fr>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Try Catch(...)
Date: Wed, 20 Nov 2002 16:39:44 +0100
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
Lines: 12
Message-ID: <3ddbadd6$0$18229$626a54ce@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 20 Nov 2002 16:44:23 MET
NNTP-Posting-Host: 62.147.91.17
X-Trace: 1037807063 news1-1.free.fr 18229 62.147.91.17
X-Complaints-To: abuse@proxad.net