Coverage for src/ezcompiler/shared/__init__.py: 100.00%
7 statements
« prev ^ index » next coverage.py v7.14.3, created at 2026-07-04 11:22 +0000
« prev ^ index » next coverage.py v7.14.3, created at 2026-07-04 11:22 +0000
1# ///////////////////////////////////////////////////////////////
2# SHARED - Shared configuration and exceptions
3# Project: ezcompiler
4# ///////////////////////////////////////////////////////////////
6"""
7Shared module - Shared configuration and exceptions for EzCompiler.
9This module provides access to shared components used across all layers:
10- CompilerConfig: Project configuration dataclass
11- Exceptions: Service and utility exception hierarchy
12"""
14from __future__ import annotations
16# ///////////////////////////////////////////////////////////////
17# IMPORTS
18# ///////////////////////////////////////////////////////////////
19# Local imports
20from ._compilation_result import CompilationResult
21from ._compiler_config import COMPILER_SECTION_KEYS, CompilerConfig
22from .exceptions import (
23 CompilationError,
24 ConfigurationError,
25 EzCompilerError,
26 ReleaseError,
27 TemplateError,
28 UpdaterConfigError,
29 UpdaterError,
30 UpdaterGenerationError,
31 UploadError,
32 VersionError,
33)
34from .exceptions.utils._file_exceptions import FileError
36# ///////////////////////////////////////////////////////////////
37# TYPE ALIASES
38# ///////////////////////////////////////////////////////////////
40# Backward compatibility alias
41FileOperationError = FileError
43# ///////////////////////////////////////////////////////////////
44# PUBLIC API
45# ///////////////////////////////////////////////////////////////
47__all__ = [
48 # Configuration
49 # Result types
50 "CompilationResult",
51 # Configuration
52 "CompilerConfig",
53 "COMPILER_SECTION_KEYS",
54 # Base exception
55 "EzCompilerError",
56 # Service exceptions
57 "CompilationError",
58 "ConfigurationError",
59 "ReleaseError",
60 "TemplateError",
61 "UploadError",
62 "VersionError",
63 # File exceptions (backward compatibility alias)
64 "FileOperationError",
65 # Updater exceptions
66 "UpdaterError",
67 "UpdaterConfigError",
68 "UpdaterGenerationError",
69]