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
« prev ^ index » next coverage.py v7.13.0, created at 2026-04-03 18:53 +0000
1"""Custom exception types for Lintro."""
3from __future__ import annotations
6class LintroError(Exception):
7 """Base exception for all Lintro-related errors."""
10class InvalidToolConfigError(LintroError):
11 """Raised when a tool's configuration is invalid."""
14class InvalidToolOptionError(LintroError):
15 """Raised when invalid options are provided to a tool."""
18class ToolExecutionError(LintroError):
19 """Raised when a tool fails to execute properly."""
22class ToolTimeoutError(LintroError):
23 """Raised when a tool execution times out."""
26class ParserError(LintroError):
27 """Raised when parsing tool output fails."""
30class ConfigurationError(LintroError):
31 """Raised when configuration loading or validation fails."""
34class FileAccessError(LintroError):
35 """Raised when file access operations fail."""