Article View: borland.public.cppbuilder.internet.socket
Article #1287Re: IdFTP1->List problem
From: Tom
Date: Fri, 16 Feb 2007 01:53
Date: Fri, 16 Feb 2007 01:53
26 lines
1935 bytes
1935 bytes
David,
Without knowing the exact exception that's being thrown, I can only
give you a general try catch example. Once you get the exception
name I would only catch that exception so you can deal with any
others that may show up accordlingly.
try
{
IdFTP1->List(SL, "", false);
}
catch (Exception &e)
{
// This will catch every exception and handle them the same
// way. If you have different exceptions coming up, you need to
// catch them separately by using the proper names.
// IE: catch (EIdSocketError &e) or catch (EIdProtocolReplyError)
// If you need to do something special, put that code here.
// otherwise the error message will disappear. Please remember
// that the error will still be shown if you're using the debugger.
}
Regards,
Tom
Technical Details
Message-ID:
<45d50e74$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<45d30c11$1@newsgroups.borland.com> <45d34eeb@newsgroups.borland.com> <45d430c5$1@newsgroups.borland.com> <45d470f5$1@newsgroups.borland.com> <45d4ad13$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,56e043fe6a8aa103 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Tom" <tom@nospam.net> Newsgroups: borland.public.cppbuilder.internet.socket References: <45d30c11$1@newsgroups.borland.com> <45d34eeb@newsgroups.borland.com> <45d430c5$1@newsgroups.borland.com> <45d470f5$1@newsgroups.borland.com> <45d4ad13$1@newsgroups.borland.com> Subject: Re: IdFTP1->List problem Date: Thu, 15 Feb 2007 19:53:17 -0600 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 68.1.78.156 Message-ID: <45d50e74$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1171590772 68.1.78.156 (15 Feb 2007 17:52:52 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail