octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #40828] Exception handling: MException object


From: Ivo
Subject: [Octave-bug-tracker] [bug #40828] Exception handling: MException object functions
Date: Tue, 12 Apr 2016 16:37:09 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0

Follow-up Comment #1, bug #40828 (project octave):

Is there any update on this? I started porting matlab code to octave 4.0.1 and
our exception code is incompatible. In Matlab the exception is a class with
the functions throw, rethrow, addCause, etc.

A typical use case for us is:
catch ME1
    ME2 = MException('failedInstantiate', sprintf('Failed to create object of
type %s', type ));
    ME1 = ME1.addCause( ME2 );
    ME1.rethrow();
end

as well as the ME1.getReport() function to format the .message and .stack
trace into a nice string to print.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40828>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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