MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / ResourceConflictError

Class ResourceConflictError

utils/exceptions.py:85–93  ·  view source on GitHub ↗

Raised when there's a conflict with an existing resource.

Source from the content-addressed store, hash-verified

83
84
85class ResourceConflictError(MACException):
86 """Raised when there's a conflict with an existing resource."""
87
88 def __init__(self, message: str, resource_type: str = None, resource_id: str = None, details: Dict[str, Any] = None):
89 super().__init__(message, "RESOURCE_CONFLICT", details or {})
90 if resource_type:
91 self.details["resource_type"] = resource_type
92 if resource_id:
93 self.details["resource_id"] = resource_id
94
95
96class TimeoutError(MACException):

Callers 2

rename_workflowFunction · 0.90
copy_workflowFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected