Coverage for src/ezcompiler/shared/exceptions/utils/_installer_exceptions.py: 100.00%

7 statements  

« prev     ^ index     » next       coverage.py v7.14.3, created at 2026-07-04 11:22 +0000

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

2# INSTALLER_EXCEPTIONS - Installer (Inno Setup) operation exceptions 

3# Project: ezcompiler 

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

5 

6""" 

7Installer exceptions - Specialized exceptions for installer packaging. 

8 

9Canonical ``InstallerError`` lives here (utils subtree), under 

10``EzCompilerError``. Mirrors the ``ReleaseError`` pattern. 

11""" 

12 

13from __future__ import annotations 

14 

15# /////////////////////////////////////////////////////////////// 

16# IMPORTS 

17# /////////////////////////////////////////////////////////////// 

18from ._base import EzCompilerError 

19 

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

21# EXCEPTIONS 

22# /////////////////////////////////////////////////////////////// 

23 

24 

25class InstallerError(EzCompilerError): 

26 """Base exception for installer packaging errors (canonical).""" 

27 

28 

29class InstallerTypeError(InstallerError): 

30 """Raised when the requested installer type is not supported.""" 

31 

32 

33class IsccNotFoundError(InstallerError): 

34 """Raised when the Inno Setup compiler (ISCC.exe) cannot be located.""" 

35 

36 

37class InstallerBuildError(InstallerError): 

38 """Raised when running ISCC.exe against the .iss script fails.""" 

39 

40 

41class InstallerConfigError(InstallerError): 

42 """Raised when installer configuration is invalid or incomplete."""