TsgcWSPServer_E2EE › Events › OnException
Fired when an unhandled Delphi exception is raised while processing a connection.
property OnException: TsgcExceptionEvent;
// TsgcExceptionEvent = procedure(Connection: TsgcWSConnection; E: Exception) of object
—
Use this event to log unexpected exceptions that escape internal handlers; E.Message contains the text and Connection identifies the client involved. Prefer OnError for protocol-defined error messages.
procedure TfrmServerE2EE.WSPE2EEException(Connection: TsgcWSConnection; E: Exception);
begin
MemoLog.Lines.Add('exception: ' + E.Message);
end;