Coverage for src/ezcompiler/shared/exceptions/services/__init__.py: 100.00%

5 statements  

« prev     ^ index     » next       coverage.py v7.16.2, created at 2026-10-16 16:37 +0000

1# /////////////////////////////////////////////////////////////// 

2# SERVICES - Service layer exceptions 

3# Project: ezcompiler 

4# /////////////////////////////////////////////////////////////// 

5 

6""" 

7Services exceptions module - Exceptions for the business logic layer. 

8 

9This module provides exceptions for the service layer, with limited granularity 

10to avoid exception overload. Each service has a base exception and specific 

11error scenarios. 

12""" 

13 

14from __future__ import annotations 

15 

16from ..utils import PublishAuthError, PublishCliError, PublishError, PublisherTypeError 

17 

18# /////////////////////////////////////////////////////////////// 

19# IMPORTS - Service exceptions 

20# /////////////////////////////////////////////////////////////// 

21from ._base import EzCompilerServiceError 

22from ._service_exceptions import ( 

23 CompilationError, 

24 CompilerServiceError, 

25 ConfigurationError, 

26 ReleaseError, 

27 TemplateError, 

28 TemplateServiceError, 

29 UpdaterError, 

30 UploadError, 

31 UploaderServiceError, 

32 VersionError, 

33) 

34 

35# /////////////////////////////////////////////////////////////// 

36# PUBLIC API 

37# /////////////////////////////////////////////////////////////// 

38 

39__all__ = [ 

40 # Base exception 

41 "EzCompilerServiceError", 

42 # Compiler service exceptions 

43 "CompilerServiceError", 

44 "CompilationError", 

45 "ConfigurationError", 

46 # Template service exceptions 

47 "TemplateServiceError", 

48 "TemplateError", 

49 "VersionError", 

50 # Uploader service exceptions 

51 "UploaderServiceError", 

52 "UploadError", 

53 # Release exceptions (canonical, re-exported from utils) 

54 "ReleaseError", 

55 # Publish exceptions (canonical, re-exported from utils) 

56 "PublishError", 

57 "PublisherTypeError", 

58 "PublishCliError", 

59 "PublishAuthError", 

60 # Updater exceptions (canonical, re-exported from utils) 

61 "UpdaterError", 

62]