[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40828] Exception handling: MException object
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #40828] Exception handling: MException object functions |
Date: |
Wed, 20 Oct 2021 16:02:33 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #4, bug #40828 (project octave):
Thanks, it seems the MException class doesn't do much - it's mainly a wrapper
around built-in rethrow () defined for structs. For the getReport method, I
would need the output of rethrow () as a string, would there be a way to get
access to that?
In Matlab, rethrow () only works in the context of "try/catch ME" so the ME
object in that instance should have a private flag hasBeenCaught set to true
so that we can reproduce the same behavior. Do we need to define an accessor
to set that property or could the code defining "try/catch ME" do that
directly?
I also notice that, when run twice, "test MException" will return an error:
class not found: MException
It doesn't seem to be specific to this class (i.e. handling of errors). I'll
try to come up with a small class reproducing the issue.
(file #52136)
_______________________________________________________
Additional Item Attachment:
File name: MException.m Size:8 KB
<https://file.savannah.gnu.org/file/MException.m?file_id=52136>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?40828>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/