Article View: borland.public.cppbuilder.database.ado
Article #668Re: How to I catch ADO exceptions?
From: Arnie
Date: Thu, 09 Feb 2006 21:19
Date: Thu, 09 Feb 2006 21:19
24 lines
1534 bytes
1534 bytes
"David" <no@email.com> wrote in message
news:43eb4900@newsgroups.borland.com...
> Hi
>
> How do I catch exceptions created by ADO components?
>
> What I have done is I am using TADOQuery to create a table, but
> everytime I execute the code it throws an exception saying this
> table has been created. I would like to catch this.
>
> Thanks
try
{
// do your table creation
}
catch ( const Exception & e )
{
e.Message; // Has the error text
}
??
- Arnie
Technical Details
Message-ID:
<43ebb0f2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!195.92.193.196.MISMATCH!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43eb4900@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,531b1b108fbc13a5 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Arnie" <none> Newsgroups: borland.public.cppbuilder.database.ado References: <43eb4900@newsgroups.borland.com> Subject: Re: How to I catch ADO exceptions? Date: Thu, 9 Feb 2006 16:19:34 -0500 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 24.151.53.204 Message-ID: <43ebb0f2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1139519730 24.151.53.204 (9 Feb 2006 13:15:30 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!195.92.193.196.MISMATCH!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail