Article View: borland.public.cppbuilder.database.ado
Article #3509Re: retrieve provider error code
From: Jerry Irons
Date: Fri, 16 Aug 2002 15:19
Date: Fri, 16 Aug 2002 15:19
28 lines
1589 bytes
1589 bytes
Well,
I usually have a text file that contains all error messages, and when
an exception occurs, the text file is appended with the exception
information.
ie
Application->OnException = StopProgram ;
StopProgram:
ErrorList->Add( "Program stopped on " + FormatDateTime("mm/dd/yyyy
hh:mm:ss", Now());
the exception was caught using try { post, open, etc} catch {
Exception *E )
and this is also appended to the text file
E->ClassName()
E->Message()
and finally, an Application->MessageBox tells user that program is
ending
You may have to give your user a generic message
Doesn't always provide the best info, but is more helpful than not.
-Jerry
Technical Details
Message-ID:
<rn0qlucdtmavpt3btk9i3svsaesjh9hdol@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mailReferences:
<3d511b3e_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,ba955a3e8227a598,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-08-16 08:38:47 PST From: Jerry Irons <JIrons@compuserve.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: retrieve provider error code Date: Fri, 16 Aug 2002 11:19:19 -0400 Message-ID: <rn0qlucdtmavpt3btk9i3svsaesjh9hdol@4ax.com> References: <3d511b3e_2@dnews> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.54.9.179 X-Trace: dnews 1029511216 24.54.9.179 (16 Aug 2002 08:20:16 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mail