Coverage for kwasa\libs\exceptions.py: 0%

8 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-04-14 18:06 +0300

1# Define custom exceptions 

2class GitClonerError(Exception): 

3 """Base class for all exceptions in GitCloner.""" 

4 

5 pass 

6 

7 

8class RepositoryAlreadyExistsError(GitClonerError): 

9 """Raised when the repository already exists in the target directory.""" 

10 

11 pass 

12 

13 

14class CloneFailedError(GitClonerError): 

15 """Raised when the cloning operation fails.""" 

16 

17 pass 

18 

19 

20class CleanupFailedError(GitClonerError): 

21 """Raised when cleaning up a failed clone fails.""" 

22 

23 pass