type
TScFTPErrorEvent = procedure(Sender: TObject; ErrorCode: integer; const ErrorMessage: string; var Fail: boolean) of object;
property OnError: TScFTPErrorEvent;
Description
The OnError event occurs when the server returns an error when executing some operation.
Parameters:
| • | Sender - the object that raised the event; |
| • | ErrorCode - holds the error code; |
| • | ErrorMessage - holds the readable description of the error; |
| • | Fail - set the Fail parameter to False to prevent raising an exception, and set this parameter to True to raise the EScFTPError exception. |
See Also