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
« 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# ///////////////////////////////////////////////////////////////
6"""
7Template exceptions - Specialized exceptions for template processing operations.
9This module defines exceptions for template variable substitution,
10file generation, and template validation failures.
11"""
13from __future__ import annotations
15# ///////////////////////////////////////////////////////////////
16# IMPORTS
17# ///////////////////////////////////////////////////////////////
18from .base import EzCompilerError
20# ///////////////////////////////////////////////////////////////
21# EXCEPTIONS
22# ///////////////////////////////////////////////////////////////
25class TemplateProcessingError(EzCompilerError):
26 """Base exception for template processing errors."""
29class TemplateSubstitutionError(TemplateProcessingError):
30 """Raised when template variable substitution fails."""
33class TemplateFileWriteError(TemplateProcessingError):
34 """Raised when writing a processed template to file fails."""
37class TemplateValidationError(TemplateProcessingError):
38 """Raised when template syntax validation fails."""