Skip to content
Permalink
Browse files

Throw QgsProcessingException when a python exception occurs while run…

…ning an alg
  • Loading branch information
nyalldawson committed Jun 23, 2017
1 parent 958ca10 commit a4f23fd1a4f1f11e70a399994aef4fe39fe4c2f6
@@ -292,7 +292,7 @@ class QgsProcessingAlgorithm
%End

virtual QVariantMap processAlgorithm( const QVariantMap &parameters,
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 &parameters,
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.

0 comments on commit a4f23fd

Please sign in to comment.
You can’t perform that action at this time.