<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1lt" class="a3s" style="overflow:hidden">

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

<div class="gmail_extra"><br></div><div class="gmail_extra">Vaclav</div></div>