29
29
import os
30
30
import importlib
31
31
from qgis .core import (QgsProcessingUtils ,
32
+ QgsProcessingException ,
32
33
QgsMessageLog )
33
34
from processing .core .ProcessingConfig import ProcessingConfig
34
- from processing .core .GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
35
35
from processing .core .parameters import (getParameterFromString ,
36
36
ParameterExtent ,
37
37
ParameterRaster ,
@@ -162,7 +162,7 @@ def processAlgorithm(self, parameters, context, feedback):
162
162
filename = dataobjects .exportVectorLayer (layer )
163
163
self .exportedLayers [param .value ] = filename
164
164
elif not parameters [param .name ()].endswith ('shp' ):
165
- raise GeoAlgorithmExecutionException (
165
+ raise QgsProcessingException (
166
166
self .tr ('Unsupported file format' ))
167
167
if isinstance (param , ParameterTable ):
168
168
if param .name () not in parameters or parameters [param .name ()] is None :
@@ -172,7 +172,7 @@ def processAlgorithm(self, parameters, context, feedback):
172
172
filename = dataobjects .exportTable (table )
173
173
self .exportedLayers [parameters [param .name ()]] = filename
174
174
elif not parameters [param .name ()].endswith ('shp' ):
175
- raise GeoAlgorithmExecutionException (
175
+ raise QgsProcessingException (
176
176
self .tr ('Unsupported file format' ))
177
177
if isinstance (param , ParameterMultipleInput ):
178
178
if param .name () not in parameters or parameters [param .name ()] is None :
@@ -200,7 +200,7 @@ def processAlgorithm(self, parameters, context, feedback):
200
200
filename = dataobjects .exportVectorLayer (layer )
201
201
self .exportedLayers [layerfile ] = filename
202
202
elif not layerfile .endswith ('shp' ):
203
- raise GeoAlgorithmExecutionException (
203
+ raise QgsProcessingException (
204
204
self .tr ('Unsupported file format' ))
205
205
206
206
# TODO - set minimum extent
0 commit comments