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: StatqaError

Base exception for analysis errors.

exception statqa.exceptions.CodebookParseError[source]

Bases: ParseError

Error parsing codebook files.

exception statqa.exceptions.EnrichmentError[source]

Bases: StatqaError

Base exception for metadata enrichment errors.

exception statqa.exceptions.ExportError[source]

Bases: StatqaError

Error exporting data or results.

exception statqa.exceptions.LLMConnectionError[source]

Bases: EnrichmentError

LLM API connection or authentication error.

exception statqa.exceptions.LLMResponseError[source]

Bases: EnrichmentError

Error parsing LLM response.

exception statqa.exceptions.ParseError[source]

Bases: StatqaError

Base exception for parsing errors.

exception statqa.exceptions.StatisticalAnalysisError[source]

Bases: AnalysisError

Error in statistical computations.

exception statqa.exceptions.StatqaError[source]

Bases: Exception

Base exception for statqa package.

exception statqa.exceptions.ValidationError[source]

Bases: StatqaError

Data validation error.

exception statqa.exceptions.VariableParseError[source]

Bases: ParseError

Error parsing individual variables.