TsgcWSPServer_FilesEvents › OnError

OnError Event

Fired when a protocol-level error is reported for a connection.

Syntax

property OnError: TsgcWSErrorEvent;
// TsgcWSErrorEvent = procedure(Connection: TsgcWSConnection; const Error: string) of object

Default Value

Remarks

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.

Example

procedure TForm1.oFilesError(Connection: TsgcWSConnection; const Error: string);
begin
  Memo1.Lines.Add('error: ' + Error);
end;

Back to Events