Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

932 B
Raw Blame
"""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."""