TsgcWSPServer_DatasetEvents › OnError

OnError Event

Fires when the subprotocol reports a protocol-level error string for a connection.

Syntax

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

Default Value

Remarks

Raised when the server catches a message-level problem (malformed envelope, failed dataset update, 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.

Example

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

Back to Events