🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to I catch ADO exceptions?

#666
From: David
Date: Thu, 09 Feb 2006 14:31
30 lines
1796 bytes
I using C++ Builder, but I guess you are asking to use the try { } catch 
   (Exception &e) {}?

I have tried that and it doesnt work.

Mike Shkolnik wrote:
> try
>   yourTADOQuery.SQL.Text := 'CREATE TABLE .....';
>   yourTADOQuery.ExecSQL;
> except
> end;
> 
> --
> With best regards, Mike Shkolnik
> EMail: mshkolnik@scalabium.com
> http://www.scalabium.com
> 
> "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
> 
> 
Technical Details
Message-ID: <43eb5180@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43eb4900@newsgroups.borland.com> <43eb4e6d$1@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
Date: Thu, 09 Feb 2006 22:31:53 +0800
From: David <no@email.com>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: How to I catch ADO exceptions?
References: <43eb4900@newsgroups.borland.com> <43eb4e6d$1@newsgroups.borland.com>
In-Reply-To: <43eb4e6d$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 0606-2, 07/02/2006), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 220.255.206.12
Message-ID: <43eb5180@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1139495296 220.255.206.12 (9 Feb 2006 06:28:16 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail