Discuss this help topic in SecureBlackbox Forum

TElSSLClass.OnError

TElSSLClass     


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


This event is fired when the error occurs during protocol flow

Declaration

[C#]
    event TSBErrorEvent OnError;
    delegate void TSBErrorEvent(Object Sender, int ErrorCode, bool Fatal, bool Remote);

[VB.NET]
    Event OnError As TSBErrorEvent
    Delegate Sub TSBErrorEvent(ByVal Sender As Object, ByVal ErrorCode As Integer, ByVal Fatal As Boolean, ByVal Remote As Boolean)

[Pascal]
    property OnError : TSBErrorEvent;
    TSBErrorEvent = procedure(Sender : TObject; ErrorCode : integer; Fatal : boolean; Remote : boolean) of object;

[C++]
    void get_OnError(TSBErrorEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnError(TSBErrorEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBErrorEvent)(void * _ObjectData, TObjectHandle Sender, int32_t ErrorCode, int8_t Fatal, int8_t Remote);

[PHP]
    TSBErrorEvent|callable|NULL get_OnError()
    void set_OnError(TSBErrorEvent|callable|NULL $Value)
    callable TSBErrorEvent(TObject $Sender, integer $ErrorCode, bool $Fatal, bool $Remote)

[Java]
    TSBErrorEvent getOnError();
    void setOnError(TSBErrorEvent Value);
    TSBErrorEvent.Callback OnError = new TSBErrorEvent.Callback() {
        public void TSBErrorEventCallback(TObject Sender, int ErrorCode, boolean Fatal, boolean Remote) {
            //...
        }
    }

Parameters

  • ErrorCode - the error code, see values below
  • Fatal - the error is fatal and the session will be closed immediately
  • Remote - the error was reported by the remote side

Error codes:

Description

    This event is fired by TElSSLClient/TElSSLServer when the error occurs during protocol flow.

Discuss this help topic in SecureBlackbox Forum