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

6 statements  

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

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

2# TEMPLATE_EXCEPTIONS - Template processing exceptions 

3# Project: ezcompiler 

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

5 

6""" 

7Template exceptions - Specialized exceptions for template processing operations. 

8 

9This module defines exceptions for template variable substitution, 

10file generation, and template validation failures. 

11""" 

12 

13from __future__ import annotations 

14 

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

16# IMPORTS 

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

18from .base import EzCompilerError 

19 

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

21# EXCEPTIONS 

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

23 

24 

25class TemplateProcessingError(EzCompilerError): 

26 """Base exception for template processing errors.""" 

27 

28 

29class TemplateSubstitutionError(TemplateProcessingError): 

30 """Raised when template variable substitution fails.""" 

31 

32 

33class TemplateFileWriteError(TemplateProcessingError): 

34 """Raised when writing a processed template to file fails.""" 

35 

36 

37class TemplateValidationError(TemplateProcessingError): 

38 """Raised when template syntax validation fails."""