🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How do you catch errors & messages in ADO?

#811
From: Vladimir Stefanovic
Date: Sun, 08 May 2005 20:24
42 lines
2401 bytes
Thanks!

-- 
Best regards,
Vladimir Stefanovic
"Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message 
news:427e6f12@newsgroups.borland.com...
> Try to examine TADOConnection::Errors collection. It contains error 
> numbers - both COM and native (that goes from db server).
>
> //------------------------------------------
> Regards,
> Vassiliev V. V.
> http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + 
> ADO.Net
> http://www.oledbdirect.com - The fastest way to access MS SQL Server,
> MS Jet (Access) and Interbase (through OLEDB)
>
> "Vladimir Stefanovic" <antivari@po.sbb.co.yu> �������/�������� � �������� 
> ���������: news:427de773@newsgroups.borland.com...
>> Hi,
>>
>> I asked this a couple of weeks before, but without an answer
>> (Thread: TADOTable & TADOQuery: OnPost() errors...)
>>
>> How do you know what to say to the user when you catch
>> some post/insert/delete error in ADO? I think that saying
>> "Some error occured" is not fair.
>>
>> I do it now by analyzing the string in 'E->Message' (the more
>> details with code is in my original thread).
>>
>> Is there anything better?
>>
>>
>>
>> -- 
>> Best regards,
>> Vladimir Stefanovic
>>
>
> 
Technical Details
Message-ID: <427e7565@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!transit0.news.tiscali.nl!tiscali!newsfeed2.ip.tiscali.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <427de773@newsgroups.borland.com> <427e6f12@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,a0b07e6435a98624
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.database.ado
References: <427de773@newsgroups.borland.com> <427e6f12@newsgroups.borland.com>
Subject: Re: How do you catch errors & messages in ADO?
Date: Sun, 8 May 2005 22:24:06 +0200
Lines: 44
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: 82.117.212.65
Message-ID: <427e7565@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1115583845 82.117.212.65 (8 May 2005 13:24:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!transit0.news.tiscali.nl!tiscali!newsfeed2.ip.tiscali.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail