-
Notifications
You must be signed in to change notification settings - Fork 119
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
Create an Error package and have some pre-defined errors #541
Comments
Can you assign this issue to me? @vikash |
Sure @MadhushaPrasad assigning the issue to you. Please discuss how the user's will be using these errors (just the raw approach ) before submitting the PR. |
can you give me some more details about this Wrap and WithStack? @vikash |
@MadhushaPrasad you can refer here : https://github.com/pkg/errors?tab=readme-ov-file#adding-context-to-an-error I also found this repository for go-errors: https://github.com/go-errors/errors |
ok thank you |
@MadhushaPrasad Hey! |
For example:
GofrError, DBError, PubSubError etc.
pkg/errors package has Wrap and WithStack which can be used to provide more contexts.
The text was updated successfully, but these errors were encountered: