bugGNU Octave - Bugs: bug #40828, Exception handling: MException...

 
 

bug #40828: Exception handling: MException object functions

Submitted by:  Nir Krakauer <nir_krakauer>
Submitted on:  Fri 06 Dec 2013 08:09:05 PM UTC  
 
Category: InterpreterSeverity: 1 - Wish
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: NoneAssigned to: None
Originator Name: Nir KrakauerOpen/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 12 Apr 2016 04:37:09 PM UTC, comment #1:

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.

Ivo <icouckuy>
Fri 06 Dec 2013 08:09:05 PM UTC, original submission:

Following up on https://savannah.gnu.org/bugs/?func=detailitem&item_id=33217 , Octave doesn't recognize functions such as throw and rethrow used in Matlab's new exception handling syntax.

[cf. http://www.mathworks.com/help/matlab/matlab_prog/capture-information-about-errors.html for Matlab's documentation]

Nir Krakauer <nir_krakauer>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by icouckuy (Posted a comment)
  • -unavailable- added by nir_krakauer (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 16 Nov 2016 11:28:27 PM UTCmtmillerSeverity3 - Normal=>1 - Wish
      Release3.6.4=>dev

    Back to the top


    Powered by Savane 3.1-cleanup1