TsgcWSPServer_sgc › Events › OnError
Fires when the subprotocol reports a protocol-level error string for a connection.
property OnError: TsgcWSErrorEvent;
// TsgcWSErrorEvent = procedure(Connection: TsgcWSConnection; const Error: string) of object
—
Raised when the server catches a message-level problem (malformed envelope, failed broadcast, unreachable Guid, etc.) and wants to surface the diagnostic without aborting the connection. Error contains a human-readable description. For raw Delphi exception objects use OnException instead.
procedure TForm1.oProtocolError(Connection: TsgcWSConnection; const Error: string);
begin
Memo1.Lines.Add('error: ' + Error);
end;