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

Add quick_error to all of our error ADTS #17

Merged
merged 8 commits into from
Oct 19, 2018
Merged

Add quick_error to all of our error ADTS #17

merged 8 commits into from
Oct 19, 2018

Conversation

coltfred
Copy link
Member

  • Added quick_error to error adts. This results in us having the Error trait implemented without writing them ourselves. See the documentation for details.
  • All public errors now have informative messages, but also contain links to the sub errors that caused them.

Copy link
Contributor

@clintfred clintfred left a comment

Choose a reason for hiding this comment

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

Nice improvement!

@@ -819,7 +809,7 @@ impl<FP: Field + NonAdjacentForm> ReencryptionKey<FP> {
///
/// # Return
/// ReencryptedValue - if the value could be successfully reencrypted
/// - Left(SignatureFailed|ReencryptionKeyIsCorrupt) - if the signatures weren't valid.
/// - Left(InvalidEncryptedMessageSignature|ReencryptionKeyIsCorrupt) - if the signatures weren't valid.
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess Left isn't technically true here...
Do we have a standard way of documenting errors?

Copy link
Member Author

Choose a reason for hiding this comment

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

We should say Err instead. I'll fix that.

@coltfred coltfred merged commit 6333875 into master Oct 19, 2018
@ernieturner ernieturner deleted the error_trait branch December 4, 2018 16:44
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