1
Commit Graph

3 Commits

Author SHA1 Message Date
Ehson
e65d48be16
Added error handling for specific error codes (#69)
* Added error handling for specific error codes

* added TooManyRequestsError witch have retry_after

* Added a parameters field with retry_after and handled error code 429

* added example of handling TooManyRequestsError with RetryAfter

* fix: changed description

* fix: used switch statement instead of if statement

* add MigrateError type and IsMigrateError function

* updated apiResponse struct and error handling logic

* fix: changed from %w to %s to ensure proper functionality of Sprintf

* fix: correct error message in getMe test

---------

Co-authored-by: Ehson <priler05@gmail.com>
Co-authored-by: usmonzodasomon <budushiyprogrammist@gmail.com>
2024-04-03 10:45:48 +03:00
Negasus
d531c8b234 support all methods, wip validation 2022-04-29 12:21:42 +03:00
Negasus
a030f389d9 initial 2022-04-25 19:02:51 +03:00