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

Flat contract errors #735

Closed
wants to merge 2 commits into from
Closed

Flat contract errors #735

wants to merge 2 commits into from

Conversation

volovyks
Copy link
Collaborator

No description provided.

@volovyks volovyks requested review from ChaoticTempest and ppca July 26, 2024 15:37
@ChaoticTempest
Copy link
Member

So, we're going to run into issues later with this when we get multiple errors being returned from the same function and they're not easily combined. The flat errors I was talking about is not where we have multiple enums, but rather a singular error type with an Error representation similar to workspaces::ErrorRepr. That way we don't need to think about combining errors and just simply give the error code with custom message or wrap from another error

@volovyks
Copy link
Collaborator Author

@gagdiez can you take a look at this, please? Not sure what is best. @ChaoticTempest design is more flexible, but it is not visible what category of errors the function returns.

@volovyks
Copy link
Collaborator Author

Closing in favour of #757

@volovyks volovyks closed this Jul 29, 2024
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