This commit is contained in:
2026-09-29 15:07:05 +02:00
parent 06fe43bba3
commit 4de305bbf4
12 changed files with 837 additions and 97 deletions

View File

@@ -30,3 +30,18 @@ class IntraUnauthorizedException extends IntraApiException {
class IntraApiErrorException extends IntraApiException {
const IntraApiErrorException(super.message);
}
class IntraRateLimitException extends IntraApiException {
const IntraRateLimitException()
: super(
'Trop de requêtes vers l’API 42. Attends quelques secondes puis réessaie.',
);
}
class IntraForbiddenException extends IntraApiException {
const IntraForbiddenException()
: super(
'Accès refusé (403). Déconnecte-toi puis reconnecte-toi '
'(scopes OAuth : public + projects sur l’app Intra).',
);
}