Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Oct : Re: TidFTP Any way to catch what error cause issue?
| Subject: | Re: TidFTP Any way to catch what error cause issue? |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 11 Oct 2006 22:19:54 |
"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