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

Error helpers should be part of the SDK's #211

Open
wtrocki opened this issue Jul 30, 2021 · 2 comments
Open

Error helpers should be part of the SDK's #211

wtrocki opened this issue Jul 30, 2021 · 2 comments

Comments

@wtrocki
Copy link
Collaborator

wtrocki commented Jul 30, 2021

Examples:
https://github.com/redhat-developer/app-services-cli/blob/srsdata/pkg/api/srs/error.go#L97-L122

@craicoverflow
Copy link
Contributor

Will that be used anywhere other than the CLI?

@wtrocki
Copy link
Collaborator Author

wtrocki commented Jul 30, 2021

yes.. Get API error implementation is tricky that involves casting errors and without that sdk users cannot get full error information nor handle it. Obviously status codes and error model will be different for each SDK but they should be there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants