Board index » cppbuilder » [C++ Builder 5] catching ADO errors
George Nakos
CBuilder Developer |
George Nakos
CBuilder Developer |
[C++ Builder 5] catching ADO errors2005-08-23 05:57:35 PM cppbuilder7 Hi there, When I run a query using TADOQuery with a zero recordset, I get an exception thrown at me. Can anyone supply with code on how to trap all ADO errors? (I suspect it's a try...catch block, but my C++ isn't my forte). Also, how can I tell to the de{*word*81} (Builder 5) to let my application handle exceptions using try...catch instead of reporting errors? Thanks, George -- Using Opera's revolutionary e-mail client: www.opera.com/mail/ |
Vladimir Stefanovic
CBuilder Developer |
2005-08-23 09:47:06 PM
Re:[C++ Builder 5] catching ADO errors
This is not a language issue.
For your future reference, there is ADO group for this... QuoteCan anyone supply with code on how to trap all ADO errors? start the app from explorer, no messages will be present with this skeleton... try { // EXECUTE A QUERY } catch ( const Exception &e ) { // swallow error message } -- Best regards, Vladimir Stefanovic |
Bob Gonder
CBuilder Developer |
2005-08-23 11:37:19 PM
Re:[C++ Builder 5] catching ADO errors
George Nakos wrote:
QuoteAlso, how can I tell to the de{*word*81} (Builder 5) to let my application {smallsort} |
George Nakos
CBuilder Developer |
2005-08-24 02:36:42 PM
Re:[C++ Builder 5] catching ADO errors
On Tue, 23 Aug 2005 16:47:06 +0300, Vladimir Stefanovic
< XXXX@XXXXX.COM >wrote: QuoteThis is not a language issue. Quote
Thanks, George -- Using Opera's revolutionary e-mail client: www.opera.com/mail/ |
George Nakos
CBuilder Developer |
2005-08-24 02:38:44 PM
Re:[C++ Builder 5] catching ADO errors
On Tue, 23 Aug 2005 18:37:19 +0300, Bob Gonder
< XXXX@XXXXX.COM >wrote: Quote
-- Using Opera's revolutionary e-mail client: www.opera.com/mail/ |