Skip to content
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

Add exception support #225

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Add exception support #225

wants to merge 3 commits into from

Conversation

fsimonis
Copy link
Member

@fsimonis fsimonis commented Nov 25, 2024

This PR adds exception support for the entire API.

Note that both const and except are incompatible, hence I had to remove the const member specifiers from the API.
This shouldn't be a problem as const is purely decorative as there is no const usage in python.

This implementation translates all exceptions into RuntimeErrors on the python side. We could provide a custom Error as part of the precice module to make this cleaner.

Closes #173

@fsimonis fsimonis requested a review from IshaanDesai November 25, 2024 10:27
@fsimonis fsimonis self-assigned this Nov 25, 2024
@fsimonis fsimonis added the enhancement New feature or request label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support preCICE Exception system
1 participant