Skip to content

Conversation

@nathanthorpe
Copy link
Contributor

@nathanthorpe nathanthorpe commented Jul 1, 2024

CI-215

Add exceptions for various server responses so we can catch properly in the SDK, instead of just using UnexpectedStatus exception.

Regular calls catch the NotFoundException and return None

@nathanthorpe nathanthorpe requested a review from sminot July 1, 2024 23:42
@@ -1,5 +1,30 @@
"""Contains shared errors types that can be raised from API functions"""

from http import HTTPStatus
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the main changes

@nathanthorpe nathanthorpe changed the title Improve error handling on API actions CI-215 Improve error handling on API actions Jul 1, 2024
@nathanthorpe nathanthorpe merged commit a38d1c3 into main Jul 3, 2024
@nathanthorpe nathanthorpe deleted the error-handling branch July 3, 2024 17:37
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.

3 participants