TsgcWSPClient_sgc › Events › OnException
Fires when an unhandled exception occurs on the connection.
property OnException: TsgcExceptionEvent;
// TsgcExceptionEvent = procedure(Connection: TsgcWSConnection; E: Exception) of object
—
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.
procedure TForm1.oProtocolException(Connection: TsgcWSConnection; E: Exception);
begin
Memo1.Lines.Add(E.ClassName + ': ' + E.Message);
end;