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

Feat/check response #51

Conversation

Mopsgeschwindigkeit
Copy link
Contributor

Summary - The What

DO - Added custom sxapi error messages and defined according cli exit codes.

Purpose - The Why

DO - Printing a meaningful error messages with a possible solution hint is much better then a full error Traceback.

Magic - The How (Optional)

DO - Defined a custom error classes. Wrote two decorators, one for raising custom errors on 4xx http response status codes and another for catching all raises and transform them into a exit code.

ToDo's - Open Point List

DO

  • Catch further possible API http errors.

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

Successfully merging this pull request may close these issues.

1 participant