mirror of
https://github.com/langgenius/dify.git
synced 2026-11-28 07:27:00 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
18 lines
506 B
Python
18 lines
506 B
Python
class WorkflowInUseError(ValueError):
|
|
"""Raised when attempting to delete a workflow that's in use by an app"""
|
|
|
|
pass
|
|
|
|
|
|
class DraftWorkflowDeletionError(ValueError):
|
|
"""Raised when attempting to delete a draft workflow"""
|
|
|
|
pass
|
|
|
|
|
|
class WorkflowDraftInitializationBusyError(RuntimeError):
|
|
"""The request could not acquire the Redis lease required to create a draft."""
|
|
|
|
def __init__(self) -> None:
|
|
super().__init__("Workflow draft initialization is busy. Please try again.")
|