Skip to content

exceptions

Custom exceptions for HOLMES.

This module provides a unified exception hierarchy for the HOLMES application, re-exporting Rust exceptions and adding Python-specific exceptions.

HolmesDataError

Bases: Exception

Raised for data loading and parsing errors.

This exception is used when: - CSV files are malformed or have missing columns - Date ranges are invalid or yield empty results - CemaNeige configuration parsing fails

Source code in src/holmes/exceptions.py
class HolmesDataError(Exception):
    """
    Raised for data loading and parsing errors.

    This exception is used when:
    - CSV files are malformed or have missing columns
    - Date ranges are invalid or yield empty results
    - CemaNeige configuration parsing fails
    """

HolmesWebSocketError

Bases: Exception

Raised for WebSocket communication errors.

This exception is used when: - WebSocket send operations fail - Connection state is invalid - Message parsing fails

Source code in src/holmes/exceptions.py
class HolmesWebSocketError(Exception):
    """
    Raised for WebSocket communication errors.

    This exception is used when:
    - WebSocket send operations fail
    - Connection state is invalid
    - Message parsing fails
    """

HolmesConfigError

Bases: Exception

Raised for configuration validation errors.

This exception is used when: - Environment variables have invalid values - Port numbers are out of range - Host addresses are invalid

Source code in src/holmes/exceptions.py
class HolmesConfigError(Exception):
    """
    Raised for configuration validation errors.

    This exception is used when:
    - Environment variables have invalid values
    - Port numbers are out of range
    - Host addresses are invalid
    """

HolmesFileNotFoundError

Bases: Exception

Raised for missing file.

Source code in src/holmes/exceptions.py
class HolmesFileNotFoundError(Exception):
    """
    Raised for missing file.
    """