Skip to content

Conversation

@ardevd
Copy link
Contributor

@ardevd ardevd commented Apr 30, 2025

by having a single exception type it's a lot easier for SDK users to handle exceptions from the DIMO SDK.

Rather than hunting down exception types from the requests library, ValueError, or any other possible exceptions, the caller can simply deal with the SDK's HTTPError and parse out the response code and response error body (if present).

The caller therefore doesnt even need to know about the SDK's underlying use of requests.

by having a single exception type it's a lot easier
for SDK users to handle exceptions from the DIMO SDK.

Rather than hunting down exception types from the requests library,
ValueError, or any other possible exceptions, the caller can simply
deal with the SDK's HTTPError and parse out the response code
and response error body (if present).

The caller therefore doesnt even need to know about the SDK's underlying
use of `requests`.
@barrettk8090 barrettk8090 merged commit 52b76c1 into DIMO-Network:master Apr 30, 2025
1 check 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.

2 participants