mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-03 18:36:21 +00:00
### What problem does this PR solve? #10953 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
30 lines
686 B
Python
30 lines
686 B
Python
"""Exception class definitions"""
|
|
|
|
|
|
class ConnectorMissingCredentialError(Exception):
|
|
"""Missing credentials exception"""
|
|
def __init__(self, connector_name: str):
|
|
super().__init__(f"Missing credentials for {connector_name}")
|
|
|
|
|
|
class ConnectorValidationError(Exception):
|
|
"""Connector validation exception"""
|
|
pass
|
|
|
|
|
|
class CredentialExpiredError(Exception):
|
|
"""Credential expired exception"""
|
|
pass
|
|
|
|
|
|
class InsufficientPermissionsError(Exception):
|
|
"""Insufficient permissions exception"""
|
|
pass
|
|
|
|
|
|
class UnexpectedValidationError(Exception):
|
|
"""Unexpected validation exception"""
|
|
pass
|
|
|
|
class RateLimitTriedTooManyTimesError(Exception):
|
|
pass |