MCPcopy Create free account
hub / github.com/canopy-network/canopy / err_from_any

Function err_from_any

plugin/python/contract/error.py:59–60  ·  view source on GitHub ↗
(err: Any)

Source from the content-addressed store, hash-verified

57
58
59def err_from_any(err: Any) -> PluginError:
60 return PluginError(10, DEFAULT_MODULE, f"fromAny() failed with err: {err}")
61
62
63def err_invalid_message_cast() -> PluginError:

Callers

nothing calls this directly

Calls 1

PluginErrorClass · 0.70

Tested by

no test coverage detected