2026-09-29 08:42:31 +00:00
|
|
|
"""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}")
|
|
|
|
|
|
|
|
|
|
|
2026-10-30 16:13:53 +08:00
|
|
|
class SourceCredentialUnavailableError(IndexingInputError):
|
2026-09-29 08:42:31 +00:00
|
|
|
"""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."""
|