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.

1.3 KB
Raw Blame
"""Stable failures exposed above provider-specific runtime backends."""


class RuntimeBackendError(RuntimeError):
    """Base infrastructure failure for the selected runtime backend."""


class HomeSnapshotCreateError(RuntimeBackendError):
    pass


class HomeSnapshotNotFoundError(RuntimeBackendError):
    pass


class HomeSnapshotTooLargeError(RuntimeBackendError):
    pass


class BindingCreateError(RuntimeBackendError):
    pass


class BindingCapacityExhaustedError(BindingCreateError):
    """The selected runtime backend cannot allocate another Binding."""


class BindingAcquireError(RuntimeBackendError):
    pass


class BindingLostError(RuntimeBackendError):
    pass


class BindingDestroyError(RuntimeBackendError):
    pass


class SharedWorkspaceUnsupportedError(RuntimeBackendError):
    pass


class WorkspacePreservationUnsupportedError(RuntimeBackendError):
    pass


class WorkspaceUnavailableError(RuntimeBackendError):
    pass


__all__ = [
    "BindingAcquireError",
    "BindingCapacityExhaustedError",
    "BindingCreateError",
    "BindingDestroyError",
    "BindingLostError",
    "HomeSnapshotCreateError",
    "HomeSnapshotNotFoundError",
    "HomeSnapshotTooLargeError",
    "RuntimeBackendError",
    "SharedWorkspaceUnsupportedError",
    "WorkspacePreservationUnsupportedError",
    "WorkspaceUnavailableError",
]