2025-11-03 19:59:18 +08:00
|
|
|
"""Exception class definitions"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ConnectorMissingCredentialError(Exception):
|
|
|
|
|
"""Missing credentials exception"""
|
2026-07-03 12:53:39 +08:00
|
|
|
|
2025-11-03 19:59:18 +08:00
|
|
|
def __init__(self, connector_name: str):
|
|
|
|
|
super().__init__(f"Missing credentials for {connector_name}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ConnectorValidationError(Exception):
|
|
|
|
|
"""Connector validation exception"""
|
2026-07-03 12:53:39 +08:00
|
|
|
|
2025-11-03 19:59:18 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CredentialExpiredError(Exception):
|
|
|
|
|
"""Credential expired exception"""
|
2026-07-03 12:53:39 +08:00
|
|
|
|
2025-11-03 19:59:18 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InsufficientPermissionsError(Exception):
|
|
|
|
|
"""Insufficient permissions exception"""
|
2026-07-03 12:53:39 +08:00
|
|
|
|
2025-11-03 19:59:18 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UnexpectedValidationError(Exception):
|
|
|
|
|
"""Unexpected validation exception"""
|
2026-07-03 12:53:39 +08:00
|
|
|
|
2025-11-03 19:59:18 +08:00
|
|
|
pass
|
|
|
|
|
|
2026-07-03 12:53:39 +08:00
|
|
|
|
2025-11-03 19:59:18 +08:00
|
|
|
class RateLimitTriedTooManyTimesError(Exception):
|
2026-07-03 12:53:39 +08:00
|
|
|
pass
|