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
« prev ^ index » next coverage.py v7.15.2, created at 2026-08-31 04:18 +0200
1"""NotFoundError class."""
3from .lexer import LexerError
6class NotFoundError(LexerError):
7 """Required element not found in the input."""
9 def __init__(self, element_name: str) -> None:
10 """
11 Error initialization.
13 Parameters
14 ----------
15 element_name: str
16 Name of the missing element.
18 """
20 super().__init__(f"Missing element: {element_name}.")