TsgcWSPServer_Files › Events › OnException
Fired when an unhandled exception is raised while processing a connection.
property OnException: TsgcExceptionEvent;
// TsgcExceptionEvent = procedure(Connection: TsgcWSConnection; E: Exception) of object
—
Called when the subprotocol catches an exception raised while servicing a connection or a QoS timer tick. The connection argument may be nil when the exception is not tied to a specific client.
procedure TForm1.oFilesException(Connection: TsgcWSConnection; E: Exception);
begin
Memo1.Lines.Add('exception: ' + E.Message);
end;