"""Exceptions for the analyzer module.""" class AnalyzerError(Exception): """Base Analyzer error.""" class RepositoryNotAnalyzable(AnalyzerError): """Repository contents could not be fully inspected.""" class SafetyCheckFailed(AnalyzerError): """Static inspection found a disallowed pattern.""" def __init__(self, pattern_name, description, detail=""): self.pattern_name = pattern_name self.description = description super().__init__( f"Safety check failed: {pattern_name} - {description}. {detail}" )