[Qgis-developer] [GRASS-dev] GRASS & QGIS: the future

Vaclav Petras wenzeslaus at gmail.com
Sat Apr 19 14:54:37 PDT 2014


>  > G_fatal_error() is too low level not only for messages but in general,
> for
> > Python libraries wrapping GRASS library, it does not allow to throw an
> > exception in case of an error. And the same applies for C++ wrappers.
>
> If you want to turn fatal errors into exceptions, the correct way to
> do it is to use setjmp/longjmp (and contribute patches to make any
> intervening code exception-safe).
>

As I wrote before, I hope that RPC approach suggested here by Soeren will
work for languages with exceptions and for persistent applications while
GRASS modules will benefit from the advantages of GRASS library with
G_fatal_error() with exit().

Vaclav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140419/5d90a5a4/attachment.html>


More information about the Qgis-developer mailing list