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

Improve error handling #300

Merged
merged 7 commits into from
May 10, 2024
Merged

Conversation

ChristopherRabotin
Copy link
Member

This PR adds snafu for error handling. The error messages are more precise, provide more context than the previous ones, and specific type errors are handled in their own error structs. All error structs are marked as non-exhaustive to allow for expanding at a latter date.

I'd like to have the same errors be available from Python, but I'm waiting to hear back from PyO3/pyo3#4165 for implementation recommendations.

Closes #245 .

@ChristopherRabotin ChristopherRabotin merged commit c88a3a0 into master May 10, 2024
27 of 29 checks passed
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.

Improve error handling
1 participant