system-prompts-and-models-o.../dealix/core/errors.py
2026-05-01 14:03:52 +03:00

36 lines
711 B
Python

"""Custom exception hierarchy | شجرة الاستثناءات."""
from __future__ import annotations
class AICompanyError(Exception):
"""Base exception for all AI Company errors."""
class ConfigurationError(AICompanyError):
"""Missing or invalid configuration."""
class LLMError(AICompanyError):
"""LLM provider error."""
class IntegrationError(AICompanyError):
"""External integration error."""
class AgentError(AICompanyError):
"""Agent execution error."""
class ValidationError(AICompanyError):
"""Input validation error."""
class RateLimitError(AICompanyError):
"""Rate limit hit."""
class AuthenticationError(AICompanyError):
"""Authentication failed."""