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

Error fallback variant #1429

Closed
wants to merge 2 commits into from

Conversation

Alex6323
Copy link
Contributor

@Alex6323 Alex6323 commented Oct 13, 2023

Description of change

Adds a Fallback variant to the block error enum.

Keeping it a draft for now bc I don't know whether that's the right enum, and whether other enums should have a fallback, too.

Links to any relevant issues

Closes #1374

@Alex6323 Alex6323 linked an issue Oct 13, 2023 that may be closed by this pull request
@DaughterOfMars
Copy link

I think we were planning to add it to the client error, but I'm wondering if we should have another discussion about non_exhaustive tbh

@thibault-martinez
Copy link
Member

thibault-martinez commented Oct 18, 2023

Yeah adding one to all major error enums basically

@Alex6323 Alex6323 changed the title feat(types): error fallback variant Error fallback variant Oct 19, 2023
@thibault-martinez
Copy link
Member

Will add non_exhaustive instead

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.

Add a default boxed error as fallback variant
3 participants