Article View: borland.public.cppbuilder.internet.socket
Article #3874Exception handling
From: Jan Slansk
Date: Mon, 13 Jun 2005 15:42
Date: Mon, 13 Jun 2005 15:42
20 lines
1374 bytes
1374 bytes
Hi,
I am unable to catch exceptions throwed by indy's IdHTTP component (for
example EIdSocketError or EIdHTTPProtocolException throwed when
connection is forbidden).
try {
IdHTTP1->Post("address",str1,str2);
--DoSomething1--
}
catch(...) {
--DoSomething2--
}
--DoSomething3--
After Post throws exception nothing from --DoSomethingX-- appears so it
looks that Exception is throwed but uncatched.
I'am using Borland C++ builder 6 and INDY 9.
Thanks a lot for ideas.
Technical Details
Message-ID:
<42ada95b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a561ce3cd6ae6110,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 13 Jun 2005 17:42:20 +0200 From: Jan Slansk <p.prm@seznam.cz> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 Debian/1.7.5-1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Exception handling Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 195.113.65.3 Message-ID: <42ada95b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1118677339 195.113.65.3 (13 Jun 2005 08:42:19 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail