Discuss this help topic in SecureBlackbox Forum

TElSSHPublicKeyClient.OnError

TElSSHPublicKeyClient     See also     


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


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

Declaration

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

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

[Pascal]
    property OnError: TSBSSHPublicKeyErrorEvent;
    TSBSSHPublicKeyErrorEvent = procedure(Sender: TObject; ErrorCode: integer; const Comment: string) of object;

[C++]
    void get_OnError(TSBSSHPublicKeyErrorEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnError(TSBSSHPublicKeyErrorEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSSHPublicKeyErrorEvent)(void * _ObjectData, TObjectHandle Sender, int32_t ErrorCode, const char * pcComment, int32_t szComment);

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

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

Parameters

  • ErrorCode - The constant which describes the error
  • Comment - explanation for the error
  • pcComment - explanation for the error
  • szComment - the length of pcComment.

Values

Description

    TElSSHPublicKeyClient fires this event if an error occurs during the session. Most errors are fatal and lead to closing of the connection.

See also:     OnAttribute     OnCloseConnection     OnOpenConnection     OnPublicKey     OnStatus    

Discuss this help topic in SecureBlackbox Forum