Files
aitbc/aitbc/exceptions.py
aitbc ad5c147789 Expand aitbc package with new utility modules and enhanced HTTP client
- Add new exception types: RetryError, CircuitBreakerOpenError, RateLimitError
- Enhance AITBCHTTPClient with retry logic, caching, circuit breaker, and rate limiting
- Add AsyncAITBCHTTPClient for async HTTP operations
- Add crypto module with Ethereum key derivation, signing, encryption, and hashing utilities
- Add web3_utils module with Web3Client and create_web3_client
- Add security module with token generation, API key management
2026-04-25 07:46:44 +02:00

60 lines
1.1 KiB
Python

"""
AITBC Exception Hierarchy
Base exception classes for AITBC applications
"""
class AITBCError(Exception):
"""Base exception for all AITBC errors"""
pass
class ConfigurationError(AITBCError):
"""Raised when configuration is invalid or missing"""
pass
class NetworkError(AITBCError):
"""Raised when network operations fail"""
pass
class AuthenticationError(AITBCError):
"""Raised when authentication fails"""
pass
class EncryptionError(AITBCError):
"""Raised when encryption or decryption fails"""
pass
class DatabaseError(AITBCError):
"""Raised when database operations fail"""
pass
class ValidationError(AITBCError):
"""Raised when input validation fails"""
pass
class BridgeError(AITBCError):
"""Base exception for bridge errors"""
pass
class RetryError(AITBCError):
"""Raised when retry attempts are exhausted"""
pass
class CircuitBreakerOpenError(AITBCError):
"""Raised when circuit breaker is open and requests are rejected"""
pass
class RateLimitError(AITBCError):
"""Raised when rate limit is exceeded"""
pass