Article View: borland.public.cppbuilder.internet.socket
Article #3875Re: Exception handling
From: Bob Gonder
Date: Mon, 13 Jun 2005 16:40
Date: Mon, 13 Jun 2005 16:40
33 lines
1683 bytes
1683 bytes
Jan Slansk wrote:
>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.
Remy seems to be missing this morning...so, from an earlier post of
his:
Change that to this instead:
catch( const EIdException &e )
Or:
catch( const Exception &e )
Gambit
Technical Details
Message-ID:
<lkdra1hu30cglsr4vs9bjpif7hetlmm293@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42ada95b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a561ce3cd6ae6110 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Exception handling Date: Mon, 13 Jun 2005 09:40:11 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <lkdra1hu30cglsr4vs9bjpif7hetlmm293@4ax.com> References: <42ada95b@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.155.34 X-Trace: newsgroups.borland.com 1118680809 67.77.155.34 (13 Jun 2005 09:40:09 -0700) Lines: 36 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.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