TsgcWSPClient_sgcEvents › OnError

OnError Event

Fires when the server or transport reports an error string.

Syntax

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

Default Value

Remarks

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.

Example

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

Back to Events