Coverage for lintro / exceptions / errors.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2026-04-03 18:53 +0000

1"""Custom exception types for Lintro.""" 

2 

3from __future__ import annotations 

4 

5 

6class LintroError(Exception): 

7 """Base exception for all Lintro-related errors.""" 

8 

9 

10class InvalidToolConfigError(LintroError): 

11 """Raised when a tool's configuration is invalid.""" 

12 

13 

14class InvalidToolOptionError(LintroError): 

15 """Raised when invalid options are provided to a tool.""" 

16 

17 

18class ToolExecutionError(LintroError): 

19 """Raised when a tool fails to execute properly.""" 

20 

21 

22class ToolTimeoutError(LintroError): 

23 """Raised when a tool execution times out.""" 

24 

25 

26class ParserError(LintroError): 

27 """Raised when parsing tool output fails.""" 

28 

29 

30class ConfigurationError(LintroError): 

31 """Raised when configuration loading or validation fails.""" 

32 

33 

34class FileAccessError(LintroError): 

35 """Raised when file access operations fail."""