TsgcWSPClient_E2EE › Events › OnException
Fired when an unhandled exception is raised while processing E2EE traffic.
property OnException: TsgcExceptionEvent;
// TsgcExceptionEvent = procedure(Connection: TsgcWSConnection; E: Exception) of object
—
Raised when an exception propagates out of the receive/decrypt pipeline or a user handler that runs on the read thread. The component catches it to keep the connection alive; use this event to log or display the E instance. It does not fire for exceptions raised on the VCL/UI thread of your own code.
procedure TForm1.oE2EEException(Connection: TsgcWSConnection; E: Exception);
begin
Log('E2EE exception: ' + E.Message);
end;