🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Database Error Handling

#2124
From: Wolfgang Unger
Date: Sun, 09 Nov 2003 14:16
22 lines
2017 bytes
Hi,
I'm not this experienced in
C++(Java, perl is ok for me..)and
have a problem in C++.
I'm testing Database-Applications but
don't have a way to catch Errors.
In Java I know how to use try and catch, in
C++ I need help.
Maybe someone also knows a good tutorial...
For examle, I want to take care of the situation, the path to
the database ( from a ini-file)is wrong.
I tried try...catch(...) but still I get a annoying
popup-window, telling me a EOLEException happenend..
I don't know how to create a EOLEException or EOLEError class.
I dont't want my programm stop in this situation, I want
to handle this in my code  with a Information for the user.
I'm not so good in C++ error handling, not only database-errors, so
another question: Isn't there something like the catch Throwable in
Java, to take care of any error-situation, at least at the beginnig
of the development...
thanks a lot
wolfgang
Technical Details
Message-ID: <bolid8$jui$03$1@news.t-online.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,1dd4db8ad5b46a1d,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-11-09 06:22:15 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: "Wolfgang Unger" <wolfgangunger@gmx.de>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Database Error Handling
Date: Sun, 9 Nov 2003 15:16:51 +0100
Organization: SFS
Lines: 24
Message-ID: <bolid8$jui$03$1@news.t-online.com>
Reply-To: "Wolfgang Unger" <wolfgangunger@gmx.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 1068387561 03 20434 eXQ5VBWE7vENY2D 031109 14:19:21
X-Complaints-To: usenet-abuse@t-online.de
X-ID: Ewr8XZZCoenEkbCdorTq9tINjEDMN2+n1P1MGgW3G4hT0YK3lzIZ4P
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300