Coverage for /home/admin/Documents/AI/applications/lexigram-dev/lexigram/experimental/ai/lexigram-ai-evaluation/src/lexigram/ai/evaluation/exceptions.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-25 07:19 +0800

1"""Exceptions for the AI Evaluation subsystem.""" 

2 

3from __future__ import annotations 

4 

5from lexigram.contracts.ai.exceptions import EvaluationError as BaseEvaluationError 

6 

7 

8class EvaluationConfigError(BaseEvaluationError): 

9 """Raised when evaluation configuration is invalid.""" 

10 

11 

12class EvaluatorNotFoundError(BaseEvaluationError): 

13 """Raised when a requested evaluator cannot be found.""" 

14 

15 

16class DatasetError(BaseEvaluationError): 

17 """Raised when there's an error with the evaluation dataset.""" 

18 

19 

20class HarnessError(BaseEvaluationError): 

21 """Raised when the evaluation harness encounters an error.""" 

22 

23 

24class TrackingError(BaseEvaluationError): 

25 """Raised when experiment tracking cannot persist or read run state.""" 

26 

27 

28class CheckpointError(BaseEvaluationError): 

29 """Raised when a checkpoint is missing or fails digest verification.""" 

30 

31 

32class AblationError(BaseEvaluationError): 

33 """Raised when an ablation references unknown checkpoints.""" 

34 

35 

36class AnalysisError(BaseEvaluationError): 

37 """Raised when a run analysis cannot be produced.""" 

38 

39 

40__all__ = [ 

41 "AblationError", 

42 "AnalysisError", 

43 "CheckpointError", 

44 "DatasetError", 

45 "EvaluationConfigError", 

46 "EvaluatorNotFoundError", 

47 "HarnessError", 

48 "TrackingError", 

49]