Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Oct : Re: TidFTP Any way to catch what error cause issue?

www.cryer.info
Managed Newsgroup Archive

Re: TidFTP Any way to catch what error cause issue?

Subject:Re: TidFTP Any way to catch what error cause issue?
Posted by:"Vincent" (vydori..@gmail.com)
Date:Thu, 12 Oct 2006 08:00:15

Thanks, that gave me exactly what I needed.

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:452dd0e7$1@newsgroups.borland.com...
>
> "Vincent" <vydorian@gmail.com> wrote in message
> news:452ce5ef$1@newsgroups.borland.com...
>
>> Is there a way to know what the error is that is causing the
>> exception to be thrown?
>
> Have you tried looking at the exception itself?  For example:
>
>    Except
>        on E: Exception do
>        begin
>            Result := False;
>            FTPConnection.Disconnect;
>            ShowMessage(E.ClassName + ': ' + E.Message); // <-- here
>            Exit;
>        end;
>    End;
>
>
> Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive