From da86417e3e958577a3396890d8dd7998efc69498 Mon Sep 17 00:00:00 2001 From: fl0w <41456914+goverfl0w@users.noreply.github.com> Date: Wed, 19 May 2021 14:55:46 -0400 Subject: [PATCH] Document error handling. --- content/libraries/php.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/content/libraries/php.mdx b/content/libraries/php.mdx index 1cde07a..c09de9d 100644 --- a/content/libraries/php.mdx +++ b/content/libraries/php.mdx @@ -132,3 +132,13 @@ if($api->connected) if($isVoted) echo "This user voted!"; } ``` + +## Error Handling + +This library uses extensions of the PHP `BaseException()` throwable class. +The list below are the current exceptions able to be given. + +* `GlobalRatelimitException` +* `ResourceRatelimitException` +* `MissingStatsException` +* `MissingTokenException`