Update utils/__init__.py:

- Add CommandError and EventError to imports and __all__
- Add CogError to imports and __all__
- Add TrackingError to imports and __all__
- Add helper functions for error handling and progress tracking
- Add version information and shared instances
This commit is contained in:
pacnpal
2024-11-17 00:06:09 +00:00
parent 99fa0864f2
commit e08ec2fa84

View File

@@ -72,7 +72,17 @@ from .exceptions import (
CleanupError, CleanupError,
# Health monitoring # Health monitoring
HealthCheckError HealthCheckError,
# Command and Event operations
CommandError,
EventError,
# Cog operations
CogError,
# Progress tracking
TrackingError
) )
__all__ = [ __all__ = [
@@ -149,6 +159,16 @@ __all__ = [
# Health Monitoring Exceptions # Health Monitoring Exceptions
'HealthCheckError', 'HealthCheckError',
# Command and Event Exceptions
'CommandError',
'EventError',
# Cog Exceptions
'CogError',
# Progress Tracking Exceptions
'TrackingError',
# Helper Functions # Helper Functions
'get_download_progress', 'get_download_progress',
'get_compression_progress', 'get_compression_progress',