v5.0.0
Introducing 3 new exceptions all inheriting from the InvalidApiUsageException
class, with the aim of being more specific when an error occurs.
These exceptions replace the InvalidApiUsageException
class in the following response code types and may be handled in the following cases:
- 401s will give
AuthenticationFailedException
instead ofInvalidApiUsageException
- 403s will give
InsufficientPermissionsException
instead ofInvalidApiUsageException
- 429s will give
RateLimitReachedException
instead ofInvalidApiUsageException