Coverage for src / ezcompiler / shared / __init__.py: 100.00%
7 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-27 06:49 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-27 06:49 +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 CompilerConfig
22from .exceptions import (
23 CompilationError,
24 ConfigurationError,
25 EzCompilerError,
26 TemplateError,
27 UploadError,
28 VersionError,
29)
30from .exceptions.utils.file_exceptions import FileError
32# ///////////////////////////////////////////////////////////////
33# TYPE ALIASES
34# ///////////////////////////////////////////////////////////////
36# Backward compatibility alias
37FileOperationError = FileError
39# ///////////////////////////////////////////////////////////////
40# PUBLIC API
41# ///////////////////////////////////////////////////////////////
43__all__ = [
44 # Configuration
45 # Result types
46 "CompilationResult",
47 # Configuration
48 "CompilerConfig",
49 # Base exception
50 "EzCompilerError",
51 # Service exceptions
52 "CompilationError",
53 "ConfigurationError",
54 "TemplateError",
55 "UploadError",
56 "VersionError",
57 # File exceptions (backward compatibility alias)
58 "FileOperationError",
59]