MangabaError (core/exceptions.py)

mangaba_ai · mangaba/core/exceptions.py · python · MIT
ai

Exception hierarchy for Mangaba AI v3.0 Typed exceptions for each subsystem, enabling granular error handling and automatic retry of transient failures.

# Source: https://github.com/Mangaba-ai/mangaba_ai | License: MIT | Copyright 2024 Mangaba AI
# Provided via justclaw.it.com; keep this notice with the code.
"""
Exception hierarchy for Mangaba AI v3.0

Typed exceptions for each subsystem, enabling granular error handling
and automatic retry of transient failures.
"""

from __future__ import annotations

from typing import Optional


class MangabaError(Exception):
    """Base exception for all Mangaba errors."""

    def __init__(self, message: str, *, cause: Optional[Exception] = None) -> None:
        self.cause = cause
        super().__init__(message)


# ---------------------------------------------------------------------------
# Configuration
# ---------------------------------------------------------------------------

class Config

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key