Source code for gitlab_overviewer.api.errors

 1"""API error handling implementation.
 2
 3Implements :any:`/specs/spec_api_client` ยง3, covering:
 4
 5* Error-to-exception mapping
 6* HTTP status code handling
 7
 8"""
 9
10
[docs] 11class GitLabAPIError(Exception): 12 """Base exception for GitLab API errors."""
13 14
[docs] 15class AuthenticationError(GitLabAPIError): 16 """Raised for 401/403 responses."""
17 18
[docs] 19class NotFoundError(GitLabAPIError): 20 """Raised for 404 responses."""
21 22
[docs] 23class RateLimitError(GitLabAPIError): 24 """Raised for 429 responses or rate-limit headers."""