TsgcWSPClient_sgc › Events › OnError
Fires when the server or transport reports an error string.
property OnError: TsgcWSErrorEvent;
// TsgcWSErrorEvent = procedure(Connection: TsgcWSConnection; const Error: string) of object
—
Error is a human-readable description of the failure, for example an invalid frame, a rejected authentication or a protocol violation. Use OnException for language-level exceptions.
procedure TForm1.oProtocolError(Connection: TsgcWSConnection; const Error: string);
begin
Memo1.Lines.Add('error: ' + Error);
end;