MCPcopy
hub / github.com/IBM/AssetOpsBench / error

Function error

src/servers/wo/envelope.py:27–28  ·  view source on GitHub ↗
(message: str, code: str = "API_ERROR")

Source from the content-addressed store, hash-verified

25
26
27def error(message: str, code: str = "API_ERROR") -> Dict[str, Any]:
28 return {"success": False, "error": message, "error_code": code}
29
30
31class Timer:

Callers 7

get_workorderFunction · 0.90
get_workorder_costsFunction · 0.90
create_workorderFunction · 0.90
update_workorderFunction · 0.90
_change_statusFunction · 0.90
assign_technicianFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected