🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ADOExpress and exception

#5079
From: Umberto Uderzo
Date: Mon, 09 Jul 2001 23:08
33 lines
1841 bytes
Hello Giuliano,

If you want to be really sure to catch everything, use the catch(...)
notation.
Sure you lose the "fine tuning control" over the exception type, but trust
this works well

Ciao... Umberto Uderzo

"Giuliano" <gcardinali@remove.adhoc.net> ha scritto nel messaggio
news:3b49db8e.6646036@newsgroups.borland.com...
> Hi all,
>
>     does anyone knows how to reliably catch exceptions that are generated
from
> ADOExpress components? For example:
>
> try {
>     ADODataSet1->Insert();
>     ADODataSet1->FieldByName( "FIELD1" )->Value = ... some value;
>     ADODataSet1->FieldByName( "FIELD2" )->Value = ... some value;
>     ....
>     ADODataSet1->Post();
> }
> catch ( EOleException& E ) {
> }
> catch ( Exception& E ) {
> }
>
> When a post error occur, IDE say that an EOleException is thrown.
> The problem is that the execution flow never goes to the first catch
block,
> even if IDE has told that an EOleException occurred.
Technical Details
Message-ID: <3b4a3896_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3b49db8e.6646036@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,1623dd9ebc255b47
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-07-09 16:10:22 PST
From: "Umberto Uderzo" <umberto@uderzo.it>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3b49db8e.6646036@newsgroups.borland.com>
Subject: Re: ADOExpress and exception
Date: Tue, 10 Jul 2001 01:08:09 +0200
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 62.10.18.80
Message-ID: <3b4a3896_2@dnews>
X-Trace: dnews 994719894 62.10.18.80 (9 Jul 2001 16:04:54 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews