f36e2104d8
tests / ragflow_tests_infinity (push) Has been cancelled
tests / ragflow_tests_elasticsearch (push) Has been cancelled
sep-tests / ragflow_preflight (push) Has been cancelled
sep-tests / ragflow_tests_infinity (push) Has been cancelled
sep-tests / ragflow_tests_elasticsearch (push) Has been cancelled
tests / ragflow_preflight (push) Has been cancelled
37 lines
693 B
Python
37 lines
693 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
|