Discuss this help topic in SecureBlackbox Forum

TElSSHClass.OnError

TElSSHClass     


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


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

Declaration

[C#]
    event TSSHErrorEvent OnError;
    delegate void TSSHErrorEvent(Object Sender, int ErrorCode);

[VB.NET]
    Event OnError As TSSHErrorEvent
    Delegate Sub TSSHErrorEvent(ByVal Sender As Object, ByVal ErrorCode As Integer)

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

[C++]
    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);

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

[Java]
    TSSHErrorEvent getOnError();
    void setOnError(TSSHErrorEvent Value);
    TSSHErrorEvent.Callback OnError = new TSSHErrorEvent.Callback() {
        public void TSSHErrorEventCallback(TObject Sender, int ErrorCode) {
            //...
        }
    }

Parameters

  • ErrorCode - The constant which describes the error

Values

Description

    SSH client/server fires this event if an error occurs during the session. Most errors are fatal and lead to connection closure.

Discuss this help topic in SecureBlackbox Forum