[Paraview-developers] Handling exceptions from within a Plug-in

Mathieu Westphal mathieu.westphal at kitware.com
Fri May 13 08:47:50 EDT 2016


Hello

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.

Regards,

Mathieu Westphal

On Fri, May 13, 2016 at 2:39 PM, Ellon Paiva <ellonpaiva at gmail.com> wrote:

> Hello all,
>
> 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?
>
> Regards,
> Ellon
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at:
> http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160513/77d26c4d/attachment.html>


More information about the Paraview-developers mailing list