"""
Custom exception hierarchy for pgsi_analyzer.
"""
[docs]
class PGSIAnalyzerError(Exception):
"""Base exception for all pgsi_analyzer errors."""
[docs]
class MeasurementError(PGSIAnalyzerError):
"""Raised for measurement-related failures (energy/time)."""
[docs]
class AnalysisError(PGSIAnalyzerError):
"""Raised for analysis/data processing failures."""
[docs]
class ConfigurationError(PGSIAnalyzerError):
"""Raised for configuration or missing resource issues."""
[docs]
class AuditError(PGSIAnalyzerError):
"""Raised when audit validation fails (e.g. data in unregistered directory/method)."""