refactor: enhance module documentation and improve function descriptions across the codebase

This commit is contained in:
2025-08-25 13:53:13 +05:30
parent e434c3d2e0
commit c493d72187
8 changed files with 229 additions and 65 deletions

View File

@@ -1,9 +1,18 @@
"""
Custom exceptions for the Gemini Key Management script.
"""Exception hierarchy for Gemini Key Management system.
Defines domain-specific exceptions for:
- Terms of Service compliance failures
- Permission-related errors
- API operation constraints
"""
class TermsOfServiceNotAcceptedError(Exception):
"""Raised when the Terms of Service for a required API have not been accepted."""
"""Indicates unaccepted Terms of Service for critical API operations.
Attributes:
message (str): Human-readable error description
url (str): URL for Terms of Service acceptance portal
"""
def __init__(self, message, url):
self.message = message
self.url = url