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

Add error handling and parsing for API responses #20

Merged
merged 5 commits into from
Aug 19, 2024
Merged

Conversation

ksysoev
Copy link
Owner

@ksysoev ksysoev commented Aug 19, 2024

This pull request adds error handling and parsing for API responses in the deriv package. It includes the following changes:

  • Adds error handling for the case when the connection is closed.

  • Defines errors as public variables for better reusability.

  • Adds a method for parsing API error details.

  • Updates a test for an empty subscription ID.

  • Makes APIErrorResponse private.

These changes improve the error handling and parsing capabilities of the deriv package, making it more robust and reliable.

@ksysoev ksysoev merged commit 4c0c58a into main Aug 19, 2024
3 checks passed
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