mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-17 23:09:35 +00:00
36 lines
711 B
Python
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."""
|