<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Syntax errors cannot be caught. but you
      can use execstr to detect them this way:<br>
      <br>
      if execstr(["sciargs(";"disp(5)"],"errcatch")<>0 then<br>
           [error_message,error_number]=lasterror(%t);<br>
           disp(error_message)<br>
      end <br>
      <br>
      <br>
      Serge Steer<br>
      Le 18/04/2013 13:19, pratham920 a écrit :<br>
    </div>
    <blockquote cite="mid:1366283950154-4026567.post@n3.nabble.com"
      type="cite"> I am executing a scilab file (containing functions)
      from python script. I have written the sciab code in try catch
      block, and the errors are redirected to a file. It catches errors
      like undefined variable, invalid argument. But error 2 i.e.
      invalid factor( for eg:<b> sciargs(</b> ) is not caught. I want to
      get that error message as well. Please find the uploaded file.
      Thank you.
      Prathamesh<a moz-do-not-send="true"
        href="http://mailinglists.scilab.org/file/n4026567/test.sce"
        target="_top" rel="nofollow" link="external">test.sce</a> <br>
      <hr align="left" width="300">
      View this message in context: <a moz-do-not-send="true"
href="http://mailinglists.scilab.org/Scilab-catching-all-errors-tp4026567.html">Scilab
        catching all errors</a><br>
      Sent from the <a moz-do-not-send="true"
href="http://mailinglists.scilab.org/Scilab-developers-Mailing-Lists-Archives-f2574944.html">Scilab
        developers - Mailing Lists Archives mailing list archive</a> at
      Nabble.com.<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/dev">http://lists.scilab.org/mailman/listinfo/dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>