MCPcopy
hub / github.com/OpenBMB/ChatDev / WorkflowCancelledError

Class WorkflowCancelledError

utils/exceptions.py:65–71  ·  view source on GitHub ↗

Raised when a workflow execution is cancelled mid-flight.

Source from the content-addressed store, hash-verified

63
64
65class WorkflowCancelledError(MACException):
66 """Raised when a workflow execution is cancelled mid-flight."""
67
68 def __init__(self, message: str, workflow_id: str = None, details: Dict[str, Any] = None):
69 super().__init__(message, "WORKFLOW_CANCELLED", details or {})
70 if workflow_id:
71 self.details["workflow_id"] = workflow_id
72
73
74class ResourceNotFoundError(MACException):

Callers 4

wait_for_human_inputMethod · 0.90
_ensure_not_cancelledMethod · 0.90
_raise_if_cancelledMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected