MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / _to_error

Method _to_error

python/src/cmdop/_transport.py:203–207  ·  view source on GitHub ↗
(env: pb.Envelope)

Source from the content-addressed store, hash-verified

201
202 @staticmethod
203 def _to_error(env: pb.Envelope) -> Exception:
204 from cmdop.errors import map_core_error
205
206 info = env.error
207 return map_core_error(info.code or "internal", info.message or "")
208
209 def _fail_all(self, exc: Exception) -> None:
210 """EOF / crash: fail every in-flight call."""

Callers 1

_dispatchMethod · 0.95

Calls 1

map_core_errorFunction · 0.90

Tested by

no test coverage detected