TsgcWSPServer_Files › Events › OnError
Fired when a protocol-level error is reported for a connection.
property OnError: TsgcWSErrorEvent;
// TsgcWSErrorEvent = procedure(Connection: TsgcWSConnection; const Error: string) of object
—
Fired when the subprotocol reports a recoverable error affecting a specific connection. Handle this event for diagnostic logging. Transport-level exceptions are reported separately through OnException.
procedure TForm1.oFilesError(Connection: TsgcWSConnection; const Error: string);
begin
Memo1.Lines.Add('error: ' + Error);
end;