mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Feat: Support multiple data sources synchronizations (#10954)
### What problem does this PR solve? #10953 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
30
common/data_source/exceptions.py
Normal file
30
common/data_source/exceptions.py
Normal file
@ -0,0 +1,30 @@
|
||||
"""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
|
||||
Reference in New Issue
Block a user