mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Throw QgsProcessingException when a python exception occurs while running an alg
This commit is contained in:
parent
958ca1075c
commit
a4f23fd1a4
@ -292,7 +292,7 @@ class QgsProcessingAlgorithm
|
||||
%End
|
||||
|
||||
virtual QVariantMap processAlgorithm( const QVariantMap ¶meters,
|
||||
QgsProcessingContext &context, QgsProcessingFeedback *feedback ) const = 0;
|
||||
QgsProcessingContext &context, QgsProcessingFeedback *feedback ) const = 0 /VirtualErrorHandler=processing_exception_handler/;
|
||||
%Docstring
|
||||
Runs the algorithm using the specified ``parameters``. Algorithms should implement
|
||||
their custom processing logic here.
|
||||
|
@ -300,7 +300,7 @@ class CORE_EXPORT QgsProcessingAlgorithm
|
||||
* values such as statistical calculations.
|
||||
*/
|
||||
virtual QVariantMap processAlgorithm( const QVariantMap ¶meters,
|
||||
QgsProcessingContext &context, QgsProcessingFeedback *feedback ) const = 0;
|
||||
QgsProcessingContext &context, QgsProcessingFeedback *feedback ) const = 0 SIP_VIRTUALERRORHANDLER( processing_exception_handler );
|
||||
|
||||
/**
|
||||
* Evaluates the parameter with matching \a name to a static string value.
|
||||
|
Loading…
x
Reference in New Issue
Block a user