<< switch interpreter functions while >>

try


catch


try/catch statement.


Syntax


try, statements_1, catch, statements_2, end

Description


try and catch statements are used for error handling and control in files.

Example


try/catch in a script file

try 
error('an error')
catch
  disp('error catched')
end

See also


run, execstr.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< switch interpreter functions while >>