Discuss this help topic in SecureBlackbox Forum



Filter: C#/Java  VB.NET  Pascal  C++  PHP  

This event is fired when some error takes place during the session


    event TSSHErrorEvent OnError;
    delegate void TSSHErrorEvent(Object Sender, int ErrorCode);

    Event OnError As TSSHErrorEvent
    Delegate Sub TSSHErrorEvent(ByVal Sender As Object, ByVal ErrorCode As Integer)

    property OnError : TSSHErrorEvent;
    TSSHErrorEvent = procedure (Sender: TObject; ErrorCode : integer) of object;

    void get_OnError(TSSHErrorEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnError(TSSHErrorEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHErrorEvent)(void * _ObjectData, TObjectHandle Sender, int32_t ErrorCode);

    TSSHErrorEvent|callable|NULL get_OnError()
    void set_OnError(TSSHErrorEvent|callable|NULL $Value)
    callable TSSHErrorEvent(TObject $Sender, integer $ErrorCode)


  • ErrorCode - The constant which describes the error



    TElSimpleSFTPClient fires this event if an error occurs during session. Most of errors are fatal and lead to connection closure.
    This event reports only SSH errors. If SFTP error occurs, EElSFTPError exception is thrown. For more information, please read the corresponding how-to article.

Discuss this help topic in SecureBlackbox Forum