-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Implement an interface for all errors, so they can be redefined by callers #853
Comments
I'd really like to work on this, but I'll probably need some guidance. |
That's fine! We can collaborate a bit, I need to do some learning here too 👩🎓 |
Here's the best post I could find about error interfaces https://dave.cheney.net/2016/04/27/dont-just-check-errors-handle-them-gracefully Here's a PR where I added an interface that essentially what I describe in the title #819, The idea is that you would set |
Awesome! Thanks for the info. Starting on it now. |
Quick question when you get a chance. Now that the |
I reviewed that code but I don't specifically know what to point you to. You could ask @asahasrabuddhe, but it may be easier for both if ya'll if you dive into the code and explore it a bit. Or looking at the PR #836 |
Yeah I spent several hours getting to know the codebase by investigating
this question. Don't worry, I don't reach out for things like this unless I
absolutely can't figure it out. I'll take another look at the PR you
mentioned and contact @asahasrabuddhe if necessary. Thanks!
…On Mon, Aug 19, 2019, 5:06 PM lynncyrin ***@***.***> wrote:
I reviewed that code but I don't specifically know what to point you to.
You could ask @asahasrabuddhe <https://github.com/asahasrabuddhe>, but it
may be easier for both if ya'll if you dive into the code and explore it a
bit. Or looking at the PR #836 <#836>
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#853?email_source=notifications&email_token=AGEPUNEQSTYQZWC47UCDLPTQFMDODA5CNFSM4IK2QG52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4UJOSA#issuecomment-522753864>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGEPUNGBD4WSVDA4ZSQHMV3QFMDODANCNFSM4IK2QG5Q>
.
|
Also for context, I just made this issue => #870 |
Ok cool. I'll just bypass the generation for now. |
Dropping this into the (I'm counting the existing PR by |
Closing this pending more buy in from maintainers |
Currently we return some error messages to end users, like
But do not provide a way for people to re-define those error messages. We should implement some public interfaces for our errors, and provide documentation on how to implement custom error messages.
Related issues / PRs
The text was updated successfully, but these errors were encountered: