Coverage for app / core / exceptions.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-21 22:41 +0300

1class AlreadyExistsError(Exception): 

2 pass 

3 

4 

5class AuthentificationError(Exception): 

6 pass 

7 

8 

9class NotFoundError(Exception): 

10 pass 

11 

12 

13class UniqueCodeGenerationError(Exception): 

14 def __init__(self, msg="Failed to generate unique code"): 

15 super().__init__(msg) 

16 

17 

18class PermissionDeniedError(Exception): 

19 def __init__(self, msg="Permission denied"): 

20 super().__init__(msg)