Coverage for src / ezqt_app / domain / errors / resources.py: 100.00%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-26 07:07 +0000

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

2# DOMAIN.ERRORS.RESOURCES - Resource and file generation exceptions 

3# Project: ezqt_app 

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

5 

6"""Typed exceptions for file/resource generation failures.""" 

7 

8from __future__ import annotations 

9 

10# /////////////////////////////////////////////////////////////// 

11# IMPORTS 

12# /////////////////////////////////////////////////////////////// 

13# Standard library imports 

14from .base import EzQtError 

15 

16 

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

18# CLASSES 

19# /////////////////////////////////////////////////////////////// 

20class ResourceError(EzQtError): 

21 """Base resource generation error.""" 

22 

23 

24class MissingPackageResourceError(ResourceError): 

25 """Raised when an expected package resource cannot be resolved.""" 

26 

27 

28class ResourceCompilationError(ResourceError): 

29 """Raised when QRC to Python resource compilation fails.""" 

30 

31 

32class InvalidOverwritePolicyError(ResourceError): 

33 """Raised when overwrite policy is not recognized."""