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

Class ResourceNotFoundError

utils/exceptions.py:74–82  ·  view source on GitHub ↗

Raised when a requested resource is not found.

Source from the content-addressed store, hash-verified

72
73
74class ResourceNotFoundError(MACException):
75 """Raised when a requested resource is not found."""
76
77 def __init__(self, message: str, resource_type: str = None, resource_id: str = None, details: Dict[str, Any] = None):
78 super().__init__(message, "RESOURCE_NOT_FOUND", details or {})
79 if resource_type:
80 self.details["resource_type"] = resource_type
81 if resource_id:
82 self.details["resource_id"] = resource_id
83
84
85class ResourceConflictError(MACException):

Callers 7

download_sessionFunction · 0.90
get_workflow_argsFunction · 0.90
get_workflow_descFunction · 0.90
delete_workflowFunction · 0.90
get_workflow_raw_contentFunction · 0.90
rename_workflowFunction · 0.90
copy_workflowFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected