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

Create an Error package and have some pre-defined errors #541

Open
vikash opened this issue Apr 29, 2024 · 6 comments
Open

Create an Error package and have some pre-defined errors #541

vikash opened this issue Apr 29, 2024 · 6 comments
Assignees
Labels
Service Related to external http, grpc communciation , middlewares etc.

Comments

@vikash
Copy link
Contributor

vikash commented Apr 29, 2024

For example:
GofrError, DBError, PubSubError etc.

pkg/errors package has Wrap and WithStack which can be used to provide more contexts.

@MadhushaPrasad
Copy link

Can you assign this issue to me? @vikash

@Umang01-hash Umang01-hash added the Service Related to external http, grpc communciation , middlewares etc. label May 6, 2024
@Umang01-hash
Copy link
Contributor

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.

@MadhushaPrasad
Copy link

MadhushaPrasad commented May 7, 2024

Wrap and WithStack

can you give me some more details about this Wrap and WithStack? @vikash

@Umang01-hash
Copy link
Contributor

Wrap and WithStack

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
To see what is errors.Wrap.

I also found this repository for go-errors: https://github.com/go-errors/errors

@MadhushaPrasad
Copy link

Wrap and WithStack

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 To see what is errors.Wrap.

I also found this repository for go-errors: https://github.com/go-errors/errors

ok thank you

@Umang01-hash
Copy link
Contributor

@MadhushaPrasad Hey!
Did we came to any raw implementation on how the users will be using our errors package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Service Related to external http, grpc communciation , middlewares etc.
Projects
None yet
Development

No branches or pull requests

3 participants