ictonyx.exceptions
Exception classes and error types.
Custom exception classes for the ictonyx library.
This module defines all exception types used throughout ictonyx, providing clear error categorization, context information, and better debugging experience.
- exception ictonyx.exceptions.IctonyxError(message, context=None)[source]
Bases:
ExceptionBase exception class for ictonyx library.
Provides common functionality for all ictonyx exceptions including context tracking and enhanced error reporting.
- exception ictonyx.exceptions.DataValidationError(message, data_info=None, validation_rule=None)[source]
Bases:
IctonyxError,ValueErrorRaised when data validation fails.
Inherits from ValueError for compatibility with existing error handling that expects ValueError for invalid data.
- classmethod for_splits(test_split, val_split)[source]
Factory method for split validation errors.
- Parameters:
- Return type:
- exception ictonyx.exceptions.ModelError(message, model_info=None, operation=None, model_state=None)[source]
Bases:
IctonyxErrorRaised when model-related operations fail.
Includes information about the model state and operation that failed.
- Parameters:
- exception ictonyx.exceptions.ExperimentError(message, experiment_info=None, run_id=None, stage=None, failure_count=None)[source]
Bases:
IctonyxErrorRaised when experiment execution fails.
Tracks experiment state, run information, and failure patterns.
- Parameters:
- classmethod high_failure_rate(failed_runs, total_runs, threshold=0.5)[source]
Factory method for high failure rate errors.
- Parameters:
- Return type:
- exception ictonyx.exceptions.StatisticalTestError(message, test_info=None, data_summary=None, suggestion=None)[source]
Bases:
IctonyxError,ValueErrorRaised when statistical test prerequisites aren’t met.
Provides detailed information about what validation failed and suggestions for remediation.
- Parameters:
- exception ictonyx.exceptions.ConfigurationError(message, config_info=None, invalid_params=None, valid_options=None)[source]
Bases:
IctonyxErrorRaised when configuration validation fails.
Helps users understand what configuration options are invalid and provides guidance on valid alternatives.
- Parameters:
- ictonyx.exceptions.validate_not_empty(data, name, min_size=1)[source]
Utility function to validate data is not empty.