<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body 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<br>
    <br>
    <div class="moz-cite-prefix">On 05/13/2016 02:47 PM, Mathieu
      Westphal wrote:<br>
    </div>
    <blockquote
cite="mid:CAC2t4UT_z--zksC6P=GYM_GvmKcTO=su38nyrw+1j3zb26-dNQ@mail.gmail.com"
      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 class="gmail_signature">
            <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 moz-do-not-send="true"
              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 moz-do-not-send="true"
              href="http://www.kitware.com" rel="noreferrer"
              target="_blank">www.kitware.com</a><br>
            <br>
            Visit other Kitware open-source projects at <a
              moz-do-not-send="true"
              href="http://www.kitware.com/opensource/opensource.html"
              rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a><br>
            <br>
            Search the list archives at: <a moz-do-not-send="true"
              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 moz-do-not-send="true"
              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>
  </body>
</html>