Spaces:
Paused

Rukku / backtest /analyzer /exceptions.py
whassan's picture
Upload folder using huggingface_hub
354fea5 verified
Raw History Blame Contribute Delete
567 Bytes
"""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}"
)