<div dir="ltr"><div>Hi !</div><div><br></div><div>I'm trying to implement a processing algorithm in Python.</div><div><br></div><div>It's not clear how I am supposed to handle errors during the execution of the algorithms. The documentation is talking about raising the exception GeoAlgorithmExecutionException </div><a href="https://qgis.org/pyqgis/3.8/core/QgsProcessingAlgorithm.html#qgis.core.QgsProcessingAlgorithm.processAlgorithm" target="_blank">https://qgis.org/pyqgis/3.8/core/QgsProcessingAlgorithm.html#qgis.core.QgsProcessingAlgorithm.processAlgorithm</a>  <br><div>unfortunately this exception doesn't exist. I've tried to raise QgsProcessingException. But from the output window, the exception does not seem to be well handled. I also tried to return an empty dictionary and then the output window doesn't seem to notify any problem at all. I've checked out GDAL and GRASS processing plugins but they seem handle errors differently in a very specific way. GDAL raise an IOError and GRASS report error with: feedback.reportError</div><div><br></div><div>So what is the right way to handle an error in processAlgorithm ? </div><div><br></div><div>It's important for me as I want to be able to create new models with the algorithms from the graphical modeler. So if something goes wrong in the middle of a set of algorithms, it definitely need to be reported correctly.</div><div><br></div><div>Thanks for your help,</div><div><br></div><div>Jean-Charles</div><div><br></div><div>PS: I'm using QGIS <span style="white-space:pre-wrap">3.8.3-Zanzibar on Windows</span></div></div>