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

std::error_code and std::expected implementation #942

Merged
merged 1 commit into from
Jul 2, 2018

Conversation

cryptocode
Copy link
Contributor

@cryptocode cryptocode commented Jul 2, 2018

This PR is in preparation of the IPC/API patch, @clemahieu suggested it be a separate patch.

These docs are still mostly valid (the std::excpected impl changed to a more robust one):
https://github.com/cryptocode/raiblocks/wiki/Error-handling-in-the-node-using-std::error_code-and-std::expected

Lee already did some reviewing of the RPC version of this PR: #801

I've started to use the nano namespace both here and in the upcoming API patch, to make it consistent with the API clients, which all use nano namespace/package naming. If that works well, we can do a transition of the remaining rai namespace.

The common error codes added is a starting point which is useful for the API patch; these will be expanded as needed.

@cryptocode cryptocode force-pushed the errorhandling-framework branch from 3da0e75 to 8215d47 Compare July 2, 2018 13:15
@clemahieu clemahieu merged commit 537aa6b into nanocurrency:master Jul 2, 2018
@cryptocode cryptocode deleted the errorhandling-framework branch October 27, 2018 20:40
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