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

Method __init__

plugin/python/contract/error.py:11–15  ·  view source on GitHub ↗
(self, code: int, module: str, msg: str)

Source from the content-addressed store, hash-verified

9 """Plugin error with code, module, and message."""
10
11 def __init__(self, code: int, module: str, msg: str):
12 super().__init__(msg)
13 self.code = code
14 self.module = module
15 self.msg = msg
16
17 def __str__(self) -> str:
18 return f"\nModule: {self.module}\nCode: {self.code}\nMessage: {self.msg}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected