🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

ADO Error Numbers - How can I get them??

#2423
From: Daryl
Date: Mon, 28 Jul 2003 00:35
14 lines
1373 bytes
Hi
I am wondering how can you get the ADO error number when an exception is
thrown within a programme.  You can use the ClassName to see if it is a
Database error but I would like to be able to capture the ErrorNumber which
is not a property of the class Exception.

I think you can get it from the ADO Connection component but I ma looking
for it from the Exception thrown at the time.

Any ideas as to haw this can be achieved - to me it looks as it can't be
deciphered from the Exception.

Thanks
Daryl
Technical Details
Message-ID: <3f246fc2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,90826d79cbe50344,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-07-27 17:38:36 PST
From: "Daryl" <daryl.stock@qr.com.au>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: ADO Error Numbers - How can I get them??
Date: Mon, 28 Jul 2003 10:35:14 +1000
Lines: 16
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: 203.9.186.133
Message-ID: <3f246fc2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1059352514 203.9.186.133 (27 Jul 2003 17:35:14 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail