Files
gsfdc/demo-dify/dify/api/services/knowledge/indexing/errors.py
T
wuzilongandCursor 6519682885 chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动
演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 13:59:25 +08:00

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."""