Coverage for src/lexigram/ai/evaluation/exceptions.py: 100%
11 statements
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-22 01:17 +0800
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-22 01:17 +0800
1"""Exceptions for the AI Evaluation subsystem."""
3from __future__ import annotations
5from lexigram.contracts.ai.exceptions import EvaluationError as BaseEvaluationError
8class EvaluationConfigError(BaseEvaluationError):
9 """Raised when evaluation configuration is invalid."""
12class EvaluatorNotFoundError(BaseEvaluationError):
13 """Raised when a requested evaluator cannot be found."""
16class DatasetError(BaseEvaluationError):
17 """Raised when there's an error with the evaluation dataset."""
20class HarnessError(BaseEvaluationError):
21 """Raised when the evaluation harness encounters an error."""
24class TrackingError(BaseEvaluationError):
25 """Raised when experiment tracking cannot persist or read run state."""
28class CheckpointError(BaseEvaluationError):
29 """Raised when a checkpoint is missing or fails digest verification."""
32class AblationError(BaseEvaluationError):
33 """Raised when an ablation references unknown checkpoints."""
36class AnalysisError(BaseEvaluationError):
37 """Raised when a run analysis cannot be produced."""
40__all__ = [
41 "AblationError",
42 "AnalysisError",
43 "CheckpointError",
44 "DatasetError",
45 "EvaluationConfigError",
46 "EvaluatorNotFoundError",
47 "HarnessError",
48 "TrackingError",
49]