TsgcWSPClient_E2EEEvents › OnE2EEError

OnE2EEError Event

Fired when the remote peer or the E2EE layer reports a protocol error.

Syntax

property OnE2EEError: TsgcWSE2EEOnErrorEvent;
// TsgcWSE2EEOnErrorEvent = procedure(Sender: TObject; const aErrorCode, aErrorDescription, aMessage: string) of object

Default Value

Remarks

Fired when an E2EE operation fails: the server refuses a request (unknown user, unknown group, permission denied), key negotiation fails, or an incoming payload cannot be decrypted. aErrorCode and aErrorDescription identify the error; aMessage contains the raw payload that triggered it and is useful for logging.

Example

procedure TForm1.oE2EEE2EEError(Sender: TObject; const aErrorCode, aErrorDescription, aMessage: string);
begin
  Log(Format('E2EE error %s: %s', [aErrorCode, aErrorDescription]));
end;

Back to Events