How to catch exception from TScSFTPClient or TScSSHClient
Posted: Tue 01 Jun 2010 16:16
Hi,
I would like to delete the message "Connection timeout expired" when the IP address is not correct ... or catch other error,
How to do that ?
I try this but without success ...
try
ScSFTPClient.Initialize;
except
on e: EScError do
begin
AddDebugString('Error : ' + e.Message);
end;
on e: EScSFTPError do
begin
AddDebugString('Error : ' + e.Message);
end;
end;
Thanks.
I would like to delete the message "Connection timeout expired" when the IP address is not correct ... or catch other error,
How to do that ?
I try this but without success ...
try
ScSFTPClient.Initialize;
except
on e: EScError do
begin
AddDebugString('Error : ' + e.Message);
end;
on e: EScSFTPError do
begin
AddDebugString('Error : ' + e.Message);
end;
end;
Thanks.