Coverage for src/ezcompiler/shared/exceptions/__init__.py: 100.00%
11 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-16 16:37 +0000
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-16 16:37 +0000
1# ///////////////////////////////////////////////////////////////
2# EXCEPTIONS PACKAGE - Specialized exception hierarchy
3# Project: ezcompiler
4# ///////////////////////////////////////////////////////////////
6"""
7Exceptions package - Specialized exceptions organized by module functionality.
9This package provides fine-grained exceptions for different layers and utilities
10of the EzCompiler project, enabling precise error handling.
12Structure:
13- services: Service layer exceptions (compiler, template, uploader services)
14- utils: Utility layer exceptions
15 - file_exceptions: File and directory operation errors
16 - compiler_exceptions: Compiler operation errors
17 - uploader_exceptions: Upload operation errors
18 - validation_exceptions: Validation errors
19 - zip_exceptions: ZIP archive errors
20 - config_exceptions: Configuration errors
21 - template_exceptions: Template processing errors
22"""
24from __future__ import annotations
26# ///////////////////////////////////////////////////////////////
27# IMPORTS - Exception modules from services
28# ///////////////////////////////////////////////////////////////
29from . import services
30from .services import (
31 CompilationError,
32 CompilerServiceError,
33 ConfigurationError,
34 PublishAuthError,
35 PublishCliError,
36 PublishError,
37 PublisherTypeError,
38 ReleaseError,
39 TemplateError,
40 TemplateServiceError,
41 UpdaterError,
42 UploadError,
43 UploaderServiceError,
44 VersionError,
45)
47# ///////////////////////////////////////////////////////////////
48# IMPORTS - Exception modules from utils
49# ///////////////////////////////////////////////////////////////
50from .utils import (
51 _base,
52 _compiler_exceptions,
53 _config_exceptions,
54 _file_exceptions,
55 _template_exceptions,
56 _uploader_exceptions,
57 _validation_exceptions,
58 _zip_exceptions,
59)
61# ///////////////////////////////////////////////////////////////
62# RE-EXPORTS - Base exception for backward compatibility
63# ///////////////////////////////////////////////////////////////
64from .utils._base import EzCompilerError
65from .utils._config_exceptions import ConfigError
66from .utils._installer_exceptions import (
67 InstallerBuildError,
68 InstallerConfigError,
69 InstallerError,
70 InstallerRenderError,
71 InstallerTypeError,
72 IsccNotFoundError,
73)
74from .utils._release_exceptions import (
75 BundleBuildError,
76 ReleaseConfigError,
77 ReleaserTypeError,
78 SigningKeyError,
79)
80from .utils._updater_exceptions import (
81 UpdaterConfigError,
82 UpdaterGenerationError,
83)
84from .utils._zip_exceptions import ZipError
86# ///////////////////////////////////////////////////////////////
87# PUBLIC API - Exception modules
88# ///////////////////////////////////////////////////////////////
90__all__ = [
91 # Exception modules
92 "services",
93 "_base",
94 "_compiler_exceptions",
95 "_config_exceptions",
96 "_file_exceptions",
97 "_uploader_exceptions",
98 "_template_exceptions",
99 "_validation_exceptions",
100 "_zip_exceptions",
101 # Base exception (re-exported for convenience)
102 "EzCompilerError",
103 # Service exceptions (re-exported for convenience)
104 "CompilerServiceError",
105 "CompilationError",
106 "ConfigurationError",
107 "TemplateServiceError",
108 "TemplateError",
109 "VersionError",
110 "UploaderServiceError",
111 "UploadError",
112 # Release exceptions
113 "ReleaseError",
114 "ReleaserTypeError",
115 "BundleBuildError",
116 "SigningKeyError",
117 "ReleaseConfigError",
118 # Publish exceptions
119 "PublishError",
120 "PublisherTypeError",
121 "PublishCliError",
122 "PublishAuthError",
123 # Installer exceptions
124 "InstallerError",
125 "InstallerTypeError",
126 "IsccNotFoundError",
127 "InstallerBuildError",
128 "InstallerConfigError",
129 "InstallerRenderError",
130 # Updater exceptions
131 "UpdaterError",
132 "UpdaterConfigError",
133 "UpdaterGenerationError",
134 # Util exceptions promoted for interface layer use
135 "ConfigError",
136 "ZipError",
137]