Exceptions¶
Custom exceptions and error handling.
Exception Classes¶
StatQA-specific exception classes and error codes.
Custom exceptions for statqa package.
This module defines exception hierarchy for better error handling using Python 3.12+ features like exception groups.
- exception statqa.exceptions.AnalysisError[source]¶
Bases:
StatqaErrorBase exception for analysis errors.
- exception statqa.exceptions.CodebookParseError[source]¶
Bases:
ParseErrorError parsing codebook files.
- exception statqa.exceptions.EnrichmentError[source]¶
Bases:
StatqaErrorBase exception for metadata enrichment errors.
- exception statqa.exceptions.ExportError[source]¶
Bases:
StatqaErrorError exporting data or results.
- exception statqa.exceptions.LLMConnectionError[source]¶
Bases:
EnrichmentErrorLLM API connection or authentication error.
- exception statqa.exceptions.LLMResponseError[source]¶
Bases:
EnrichmentErrorError parsing LLM response.
- exception statqa.exceptions.ParseError[source]¶
Bases:
StatqaErrorBase exception for parsing errors.
- exception statqa.exceptions.StatisticalAnalysisError[source]¶
Bases:
AnalysisErrorError in statistical computations.
- exception statqa.exceptions.StatqaError[source]¶
Bases:
ExceptionBase exception for statqa package.
- exception statqa.exceptions.ValidationError[source]¶
Bases:
StatqaErrorData validation error.
- exception statqa.exceptions.VariableParseError[source]¶
Bases:
ParseErrorError parsing individual variables.