[QGIS-Developer] What’s the purpose of fatalError argument in QgsProcessingFeedback.reportError() ?
Julien Cabieces
julien.cabieces at oslandia.com
Mon Sep 23 01:39:07 PDT 2024
Hi Nicolas,
> Dear devs,
>
> Title says it all. Looking at the code, this argument is never used.
>
It is actually https://github.com/qgis/QGIS/blob/a2626a2a427afc5d139061e43ade0e62bafda8ad/src/analysis/processing/qgsalgorithmdissolve.cpp#L303
> I first understood it would stop the algorithm but no.
It doesn't stop the algorithm, the algorithm has to
stop by itself after it detects and report the fatal error. This boolean is usefull
for other classes that would implement feedback to be aware that the
algorithm has to stop, and so act as such, like printing a red colored
message FATAL ERROR for instance.
This is how I understand the rationale of this boolean.
> Sorry for my ignorance…
>
Don't be :)
Regards,
Julien
> Regards,
> Nicolas
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
--
Julien Cabieces
Senior Developer at Oslandia
julien.cabieces at oslandia.com
More information about the QGIS-Developer
mailing list