octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rethrow?


From: Paul Kienzle
Subject: Re: rethrow?
Date: Fri, 26 Jan 2007 08:21:52 -0500


On Jan 26, 2007, at 3:50 AM, David Bateman wrote:

I can't remember early versions of matlab having this function, however
there seems to be a useful function called "rethrow" that can be used in
conjunction with try/catch like

        try
            do_something
        catch
            do_cleanup
            rethrow(lasterror)
        end

It seems like it wouldn't be hard to add this, with the only complexity
to me being the format of the variable lasterror.

I think I already do this somewhere:

  try
    something
  catch
    fixup
    error(lasterror)
  end



reply via email to

[Prev in Thread] Current Thread [Next in Thread]