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

Check error handling #36

Open
jensdrenhaus opened this issue Aug 20, 2024 · 0 comments
Open

Check error handling #36

jensdrenhaus opened this issue Aug 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jensdrenhaus
Copy link
Member

Prefer defining own error types over returning ones from 3rd parties.
E.g. not return errors from github.com/go-playground/validator/v10 but wrap them in own types.

Motivation: Returned errors, including rapped errors, become part of the public API. This makes it tricky to replace the respective 3rd party pkg later on without potentially braking user code

@jensdrenhaus jensdrenhaus added the enhancement New feature or request label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant