tractor/tractor/ipc
Tyler Goodlet 4540309296 Add `TransportClosed.from_src_exc()`
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.
2025-07-08 12:57:29 -04:00
..
__init__.py Move concrete `Address`es to each tpt module 2025-07-08 12:57:29 -04:00
_chan.py Move concrete `Address`es to each tpt module 2025-07-08 12:57:29 -04:00
_fd_share.py Move concrete `Address`es to each tpt module 2025-07-08 12:57:29 -04:00
_linux.py Handle cancelation on EventFD.read 2025-07-08 12:57:28 -04:00
_mp_bs.py Add buf_size to RBToken and add sender cancel test, move disable_mantracker to its own _mp_bs module 2025-07-08 12:57:28 -04:00
_ringbuf.py Add buf_size to RBToken and add sender cancel test, move disable_mantracker to its own _mp_bs module 2025-07-08 12:57:28 -04:00
_server.py Factor actor-embedded IPC-tpt-server to `ipc` subsys 2025-07-08 12:57:29 -04:00
_shm.py Slight typing and multi-line styling tweaks in `.ipc` sugpkg 2025-07-08 12:57:28 -04:00
_tcp.py Factor actor-embedded IPC-tpt-server to `ipc` subsys 2025-07-08 12:57:29 -04:00
_transport.py Add `TransportClosed.from_src_exc()` 2025-07-08 12:57:29 -04:00
_types.py Factor actor-embedded IPC-tpt-server to `ipc` subsys 2025-07-08 12:57:29 -04:00
_uds.py Factor actor-embedded IPC-tpt-server to `ipc` subsys 2025-07-08 12:57:29 -04:00