mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -05:00
Fix import issues:
- Add __all__ list to exceptions.py - Fix absolute imports to use relative imports - Fix duplicate imports - Fix truncated code in download_core.py - Add missing imports and type hints - Fix indentation and formatting issues
This commit is contained in:
@@ -3,6 +3,40 @@
|
||||
from typing import Optional, Dict, Any
|
||||
from enum import Enum, auto
|
||||
|
||||
__all__ = [
|
||||
'ErrorSeverity',
|
||||
'ErrorContext',
|
||||
'VideoArchiverError',
|
||||
'VideoDownloadError',
|
||||
'VideoProcessingError',
|
||||
'VideoVerificationError',
|
||||
'VideoUploadError',
|
||||
'VideoCleanupError',
|
||||
'FileCleanupError',
|
||||
'ConfigurationError',
|
||||
'PermissionError',
|
||||
'NetworkError',
|
||||
'ResourceError',
|
||||
'QueueError',
|
||||
'ComponentError',
|
||||
'DiscordAPIError',
|
||||
'ResourceExhaustedError',
|
||||
'ProcessingError',
|
||||
'CleanupError',
|
||||
'FileOperationError',
|
||||
'ProcessorError',
|
||||
'ValidationError',
|
||||
'DisplayError',
|
||||
'URLExtractionError',
|
||||
'MessageHandlerError',
|
||||
'QueueHandlerError',
|
||||
'QueueProcessorError',
|
||||
'FFmpegError',
|
||||
'DatabaseError',
|
||||
'HealthCheckError',
|
||||
'TrackingError'
|
||||
]
|
||||
|
||||
class ErrorSeverity(Enum):
|
||||
"""Severity levels for errors"""
|
||||
LOW = auto()
|
||||
|
||||
Reference in New Issue
Block a user