Such that re-wrapping/raising from a low-level `trio` resource error is simpler and includes the `.src_exc` in the `__repr__()` and `.message/.args` rendered at higher layers (like from `Channel` and `._rpc` machinery). Impl deats, - mainly leverages packing in a new cls-method `.repr_src_exc() -> str:` repr of the underlying error before an optional `body: str` all as handled by the previously augmented `.pformat()`'s delegation to `pformat_exc()`. - change `.src_exc` to be a property around a renamed `._src_exc`. But wait, why? - use it inside `MsgpackTransport.send()` to rewrap any `trio.BrokenResourceError`s so we always see the underlying `trio`-src-exc just like in the `.recv()._iter_packets()` handlers. |
||
---|---|---|
.. | ||
__init__.py | ||
_chan.py | ||
_fd_share.py | ||
_linux.py | ||
_mp_bs.py | ||
_ringbuf.py | ||
_server.py | ||
_shm.py | ||
_tcp.py | ||
_transport.py | ||
_types.py | ||
_uds.py |