You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2023. It is now read-only.
Updated handleResponse function to give more detailed error message (#41)
* Updated handleResponse function to give more detailed error message
* Updated CHANGELOG
* Created new exception and updated inheritance structure
* updated from pr feedback
* update to readme and changelog
If a rate limit happens it will throw a Klaviyo/Exception/KlaviyoRateLimitException.
154
+
## Exceptions
155
+
156
+
### Klaviyo\Exception\KlaviyoApiException
157
+
Thrown when there is an issue making an API request. After you catch this exception, you can use getMessage() and it will return a string containing more details about the issue that occurred.
158
+
159
+
### Klaviyo\Exception\KlaviyoRateLimitException
160
+
If a rate limit happens it will throw a Klaviyo\Exception\KlaviyoRateLimitException.
156
161
After you catch this exception you can use getMessage() and it will return a JSON encoded array:
157
162
`{"detail":"Request was throttled. Expected available in 26.0 seconds.","retryAfter":26}`
0 commit comments