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
Support Error Extensions #9
Comments
Thank you for your advice, that's a great idea, and I really need your help. These days I want to optimize the code in the subscription to make it easier to use, so our work doesn't conflict.If you have time, you can help implement `ErrorExtensions'.😁 |
I thought a little about it and started implementing a first draft. Will be ready for review tomorrow or on monday I think. |
Is a wrapper similar to |
Yes exactly. See PR for details. |
I reimplemented the error type in branch |
I looked at the |
I also replaced the trait bound std::err::Error with std::fmt::Display because I think Error is an unnecessary restriction. |
Thank you, It's merged to master.😁 |
Hey,
first of all, I really enjoy using your library so far. I think it is already very comprehensive. One thing I am missing though is returning extensions for errors as described here in the spec. Something like:
In terms of api, I think it would be nice to have a trait with a single method
with_extensions
which you could implement on your errors. Something like:I am happy to contribute, so if you want any help just let me know.
The text was updated successfully, but these errors were encountered: