Article View: borland.public.cppbuilder.internet.socket
Article #3729Re: Exception handling
From: Remy Lebeau (TeamB)
Date: Mon, 13 Jun 2005 20:08
Date: Mon, 13 Jun 2005 20:08
23 lines
1701 bytes
1701 bytes
"Jan Slansk" <p.prm@seznam.cz> wrote in message
news:42ade312$1@newsgroups.borland.com...
> I tried to use them but none of them catched exception (I tested it on
> EIdSocketError socket error #10065 no route to host).
Please show your exact code. Have you tried this yet?
try {
IdHTTP1->Post("address", str1, str2);
}
catch(const Exception &e) {
ShowMessage(e.ClassName);
}
Also, where exactly are you seeing the exception to begin with? If you are
running the project inside the IDE's debugger, you might just be seeing the
debugger catching exceptions that are internal to Indy which never actually
reach your code in the first place.
Gambit
Technical Details
Message-ID:
<42adea88$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42ada95b@newsgroups.borland.com> <42adbc9f@newsgroups.borland.com> <42ade312$1@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <42ada95b@newsgroups.borland.com> <42adbc9f@newsgroups.borland.com> <42ade312$1@newsgroups.borland.com> Subject: Re: Exception handling Date: Mon, 13 Jun 2005 13:08:39 -0700 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <42adea88$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1118694024 68.69.17.41 (13 Jun 2005 13:20:24 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail