Skip to content

refactor: convert thiserror to snafu and remove anyhow in public apis #2

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

Merged
merged 10 commits into from
Jun 25, 2025

Conversation

rklaehn
Copy link
Collaborator

@rklaehn rklaehn commented Jun 25, 2025

@ramfox I think this one is the best of 2 bad alternatives. WDYT?

At least all the plumbing does not appear in the docs since the XXXCases enums are in a private module...

@rklaehn rklaehn changed the title Snafu errors 2nd attempt refactor: convert thiserror to snafu and remove anyhow in public apis Jun 25, 2025
Copy link

@ramfox ramfox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a very sane way to go about it. Using the Cases to group and then making the errors transparent, so that we "essentially" have all the cases in the GetError, but they are still logically grouped if someone is looking to understand what happened in the code.

@rklaehn rklaehn marked this pull request as ready for review June 25, 2025 20:00
@rklaehn rklaehn merged commit ae967e3 into main Jun 25, 2025
@rklaehn rklaehn deleted the snafu-errors-2nd-attempt branch June 25, 2025 20:00
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.

2 participants