<div dir="ltr"><div><div>Hello<br><br>vtkErrorMacro is the way to go to inform the user of the error, but it will not exit the method, only inform. <br>After that you need to return 0 if you want the pipeline execution to stop.<br></div><br></div>Regards,<br><div><br><div><br><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Fri, May 13, 2016 at 2:54 PM, Ellon Paiva <span dir="ltr"><<a href="mailto:ellonpaiva@gmail.com" target="_blank">ellonpaiva@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hello Mathieu,<br>
<br>
Thanks for your answer.<br>
<br>
I think I was not clear in my question. Surely I can catch the
exception in the plugin, but I'm looking for a way to inform
paraview that an error occurred while executing the filter. Of
course this information should be passed to ParaView when handling
the exception, and probably it should halt the processing of the
pipeline as well.<br>
<br>
I'm looking now into the files of some plugins inside paraview
source. I found that some plugins use the macro "vtkErrorMacro".
Would this work for me?<br>
<br>
Regards,<br>
<br>
Ellon<div><div class="h5"><br>
<br>
<div>On 05/13/2016 02:47 PM, Mathieu
Westphal wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>Hello<br>
<br>
</div>
I supose it's kind of obvious, but why would catch not work ?
you should be able to catch your library exception in your
filter.<br>
<br>
</div>
Regards,<br>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div>
<div dir="ltr">Mathieu Westphal<br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Fri, May 13, 2016 at 2:39 PM, Ellon
Paiva <span dir="ltr"><<a href="mailto:ellonpaiva@gmail.com" target="_blank">ellonpaiva@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
I have a plug-in for paraview that wraps filters from an
specific library, and these filters that may throw
exceptions when if not configured properly (example, if the
input data doesn't have some fields). I've been looking for
a way to catch these exceptions inside the plug-in and
inform paraview about the error/problem, like for example
showing the error information in the paraview error window,
but I couldn't find an explanation of how to do that. Could
anyone explain me how to do that or show an example of code
for that?<br>
<br>
Regards,<br>
Ellon<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank"></a><a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>