Coverage for repo_ctx / providers / exceptions.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.12.0, created at 2025-11-25 17:42 +0100

1"""Provider-specific exceptions.""" 

2 

3 

4class ProviderError(Exception): 

5 """Base exception for all provider errors.""" 

6 pass 

7 

8 

9class ProviderNotFoundError(ProviderError): 

10 """Raised when a project/repository is not found.""" 

11 pass 

12 

13 

14class ProviderAuthError(ProviderError): 

15 """Raised when authentication fails.""" 

16 pass 

17 

18 

19class ProviderFileNotFoundError(ProviderError): 

20 """Raised when a file is not found in the repository.""" 

21 pass 

22 

23 

24class ProviderRateLimitError(ProviderError): 

25 """Raised when API rate limit is exceeded.""" 

26 pass 

27 

28 

29class ProviderConfigError(ProviderError): 

30 """Raised when provider configuration is invalid.""" 

31 pass