Thank you so much for the help. Regards Prathamesh
On Fri, Apr 19, 2013 at 5:39 PM, Serge Steer <[email protected]> wrote: > Syntax errors cannot be caught. but you can use execstr to detect them > this way: > > if execstr(["sciargs(";"disp(5)"],"errcatch")<>0 then > [error_message,error_number]=lasterror(%t); > disp(error_message) > end > > > Serge Steer > Le 18/04/2013 13:19, pratham920 a écrit : > > 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:* sciargs(* ) is not > caught. I want to get that error message as well. Please find the uploaded > file. Thank you. > Prathameshtest.sce<http://mailinglists.scilab.org/file/n4026567/test.sce> > ------------------------------ > View this message in context: Scilab catching all > errors<http://mailinglists.scilab.org/Scilab-catching-all-errors-tp4026567.html> > Sent from the Scilab developers - Mailing Lists Archives mailing list > archive<http://mailinglists.scilab.org/Scilab-developers-Mailing-Lists-Archives-f2574944.html>at > Nabble.com. > > > _______________________________________________ > dev mailing > [email protected]http://lists.scilab.org/mailman/listinfo/dev > > > > _______________________________________________ > dev mailing list > [email protected] > http://lists.scilab.org/mailman/listinfo/dev > > -- Thank you. Prathamesh
_______________________________________________ dev mailing list [email protected] http://lists.scilab.org/mailman/listinfo/dev
