Skip to content

Conversation

@tqml
Copy link
Collaborator

@tqml tqml commented Feb 20, 2025

Implements an additional check if an Exception within MATLAB has occurred. This is done by checking the MException.last variable in MATLAB. If the identifier is not an empty string, an MatlabException is thrown.

Checks can be disabled by calling disable_exception_check!(session) (where if no session is provided, the default is used).

This is a breaking change, because errors that would have gone unnoticed previouly would now raise an exception.

Closes #157

@tqml tqml requested a review from musm February 20, 2025 10:12
@tqml tqml changed the title Check MATLAB exceptions BREAKING: Check MATLAB exceptions Feb 21, 2025
@tqml tqml merged commit 7b095da into JuliaInterop:master May 18, 2025
4 checks passed
@tqml tqml deleted the add-matlab-exceptions branch May 18, 2025 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Propagating exceptions from MATLAB to Julia

1 participant