TsgcWSPClient_E2EE › Events › OnE2EEError
Fired when the remote peer or the E2EE layer reports a protocol error.
property OnE2EEError: TsgcWSE2EEOnErrorEvent;
// TsgcWSE2EEOnErrorEvent = procedure(Sender: TObject; const aErrorCode, aErrorDescription, aMessage: string) of object
—
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.
procedure TForm1.oE2EEE2EEError(Sender: TObject; const aErrorCode, aErrorDescription, aMessage: string);
begin
Log(Format('E2EE error %s: %s', [aErrorCode, aErrorDescription]));
end;