演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
932 B
Python
28 lines
932 B
Python
"""Application failures raised while preparing or executing indexing."""
|
|
|
|
|
|
class IndexingInputError(Exception):
|
|
"""Base class for failures while resolving stored extraction inputs."""
|
|
|
|
|
|
class IndexingInputSourceError(IndexingInputError):
|
|
"""Raised when a persisted source cannot form a valid extraction input."""
|
|
|
|
|
|
class UnsupportedStoredSourceError(IndexingInputSourceError):
|
|
def __init__(self, source_type: str) -> None:
|
|
self.source_type = source_type
|
|
super().__init__(f"unsupported data source type: {source_type}")
|
|
|
|
|
|
class SourceCredentialUnavailableError(IndexingInputSourceError):
|
|
"""Raised when a datasource cannot resolve its required credential policy."""
|
|
|
|
|
|
class DocumentIsPausedError(Exception):
|
|
"""Indexing stopped because the owned document was paused."""
|
|
|
|
|
|
class DocumentIsDeletedPausedError(Exception):
|
|
"""Indexing stopped because its document owner chain no longer exists."""
|