[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Embedded Octave - Error Handling
From: |
c. |
Subject: |
Re: Embedded Octave - Error Handling |
Date: |
Wed, 25 Sep 2013 16:45:15 +0200 |
On 25 Sep 2013, at 16:25, schallb <address@hidden> wrote:
> Do you have any Idea if i could implement a kind of "On Error resume Next"
> functionality wehn executing an M File with errors?
you could use something like:
try
%% your code here
catch
warning (lasterr)
end_try_catch
to turn your error into a warning and continue executing,
but if an error has occurred probably your code will fail anyway ...
if you just want to avoid loosing data if a long to execute function does not
return due to an error you could either
- set debug_on_error (true) to get a debug prompt within the scope of the
function tthat cuased the error an take the appropriate action manually
or
- add a "save" statement after the "catch" clause.
HTH,
c.