-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MATLAB] Enable better support for error handling in the MATLAB interface #35768
Comments
Note that we don't need to use the C++'s exception feature for this. For example, Apache Arrow C++ uses We just need to propagate an error in Apache Arrow C++ or Apache Arrow MATLAB to an exception in MATLAB. |
Thanks for your input, @kou! We actually had the same thought process. We would prefer to use an approach analogous to I've updated the title and description of this issue to reflect the fact that we intend to focus primarily on our error handling approach in the MATLAB interface, rather than specifically using C++ exceptions. |
take |
This issue was closed by #35918. I made an issue for adding error handling support without realizing this one already existed. |
Can we close this as a duplicated issue? |
Hi @kou, Closing this as a duplicate issue sounds good to me! I'm not quite sure how to do that, or if I have the right permissions to. Best, |
The issue author or maintainers can close an issue. |
Thank you, @kou! My apologies - I didn't realize I had the permissions to close the issue myself. Thanks for letting me know for the future! |
Describe the enhancement requested
Right now, there is limited support for error handling in the Proxy classes in the MATLAB interface. To make it easier to handle errors, we would need to leverage additional infrastructure in
mathworks/libmexclass
. Once that infrastructure has been added, we should update the relevant call sites that can error in the MATLAB interface.See #35655 (comment) for an example of this.
Component(s)
MATLAB
The text was updated successfully, but these errors were encountered: