TsgcWSPClient_E2EEEvents › OnException

OnException Event

Fired when an unhandled exception is raised while processing E2EE traffic.

Syntax

property OnException: TsgcExceptionEvent;
// TsgcExceptionEvent = procedure(Connection: TsgcWSConnection; E: Exception) of object

Default Value

Remarks

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.

Example

procedure TForm1.oE2EEException(Connection: TsgcWSConnection; E: Exception);
begin
  Log('E2EE exception: ' + E.Message);
end;

Back to Events