Coverage for src/galaxy_beep_frame/exception/converter/not_found.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-08-31 04:18 +0200

1"""NotFoundError class.""" 

2 

3from .lexer import LexerError 

4 

5 

6class NotFoundError(LexerError): 

7 """Required element not found in the input.""" 

8 

9 def __init__(self, element_name: str) -> None: 

10 """ 

11 Error initialization. 

12 

13 Parameters 

14 ---------- 

15 element_name: str 

16 Name of the missing element. 

17 

18 """ 

19 

20 super().__init__(f"Missing element: {element_name}.")