mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 02:41:06 -05:00
guild.py correctly imports cleanup_downloads directly from file_ops.py initialization.py now correctly imports cleanup_downloads from file_ops.py cleanup.py now correctly imports cleanup_downloads from file_ops.py utils/init.py correctly re-exports both functions The circular import has been resolved by: Having all files import directly from file_ops.py Removing the re-export of cleanup_downloads from cleanup.py Ensuring proper async/await usage throughout
30 lines
772 B
Python
30 lines
772 B
Python
"""Configuration related exceptions"""
|
|
|
|
class ConfigurationError(Exception):
|
|
"""Base exception for configuration related errors"""
|
|
pass
|
|
|
|
class ValidationError(ConfigurationError):
|
|
"""Raised when configuration validation fails"""
|
|
pass
|
|
|
|
class PermissionError(ConfigurationError):
|
|
"""Raised when there are permission issues with configuration"""
|
|
pass
|
|
|
|
class LoadError(ConfigurationError):
|
|
"""Raised when configuration loading fails"""
|
|
pass
|
|
|
|
class SaveError(ConfigurationError):
|
|
"""Raised when configuration saving fails"""
|
|
pass
|
|
|
|
class MigrationError(ConfigurationError):
|
|
"""Raised when configuration migration fails"""
|
|
pass
|
|
|
|
class SchemaError(ConfigurationError):
|
|
"""Raised when configuration schema is invalid"""
|
|
pass
|