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.

581 B
Raw Blame
"""Business failures of trace runs; ``code`` names the reason clients and run records show."""


class TraceRunError(Exception):
    def __init__(self, code: str) -> None:
        self.code = code
        super().__init__(code)


class TraceRunNotFoundError(TraceRunError):
    """The run collected nothing, or a batch names an invocation the run does not have."""


class TraceRunConflictError(TraceRunError):
    """The operation conflicts with the run's current state."""


class TraceRunLimitError(TraceRunError):
    """A runtime batch exceeds the run's collection limits."""