TsgcWSPClient_DatasetEvents › OnException

OnException Event

Fires when an unhandled exception occurs on the connection.

Syntax

property OnException: TsgcExceptionEvent;
// TsgcExceptionEvent = procedure(Connection: TsgcWSConnection; E: Exception) of object

Default Value

Remarks

Handles exceptions raised while processing frames, dispatching messages or running the QoS timer. The E parameter is the original Exception instance; use E.Message and E.ClassName to diagnose.

Example

procedure TForm1.oProtocolException(Connection: TsgcWSConnection; E: Exception);
begin
  Memo1.Lines.Add(E.ClassName + ': ' + E.Message);
end;

Back to Events