textmate_grammar.utils.exceptions¶
Module Contents¶
API¶
- exception textmate_grammar.utils.exceptions.IncludedParserNotFound(key: str = 'UNKNOWN', **kwargs)[source]¶
Bases:
ExceptionException raised when an included parser is not found in the store.
Initialization
Initialize the exception.
- Parameters:
key – The key of the included parser.
kwargs – Additional keyword arguments.
- exception textmate_grammar.utils.exceptions.IncompatibleFileType(extensions: list[str], **kwargs)[source]¶
Bases:
ExceptionException raised when the input file has an incompatible file type.
Initialization
Initialize the exception.
- Parameters:
extensions – List of compatible file extensions.
kwargs – Additional keyword arguments.
- exception textmate_grammar.utils.exceptions.FileNotFound(file: str, **kwargs)[source]¶
Bases:
ExceptionException raised when a file is not found.
Initialization
Initialize the exception.
- Parameters:
file – The path of the file.
kwargs – Additional keyword arguments.