ErrorSource (errors/failure.py)

dograh · api/errors/failure.py · python · BSD-2-Clause
voice

Provides error classification, redaction, and metadata for failures in a system.

# Source: https://github.com/dograh-hq/dograh | License: BSD-2-Clause | Copyright 2025, Zansat Technologies Private Limited
# Provided via justclaw.it.com; keep this notice with the code.
"""Stable failure classification for customer-owned and platform dependencies.

This module is intentionally independent of persistence and notification policy.  It
classifies a failure at the boundary where it is observed and emits a shadow-mode log
record that later phases can consume without changing runtime behaviour.
"""

from __future__ import annotations

import json
import re
from dataclasses import dataclass, field
from enum import Enum
from typing import Any

import httpx
from loguru import logger
from pipecat.utils.run_context import get_current_org_id


class ErrorSource(str, Enum):
    LLM = 

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

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

Get a free API key