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

Class PluginError

plugin/python/contract/error.py:8–18  ·  view source on GitHub ↗

Plugin error with code, module, and message.

Source from the content-addressed store, hash-verified

6
7
8class PluginError(Exception):
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}"
19
20
21# Error factory functions (matching Go error.go)

Callers 15

check_txMethod · 0.70
_deliver_message_sendMethod · 0.70
err_plugin_timeoutFunction · 0.70
err_marshalFunction · 0.70
err_unmarshalFunction · 0.70
err_failed_plugin_readFunction · 0.70
err_failed_plugin_writeFunction · 0.70
err_insufficient_fundsFunction · 0.70
err_from_anyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected