run_status_from_exception(
exc: Optional[BaseException],
) -> Optional[RunEndStatus]Return the explicit status an exception asks to be traced with.
Only deliberate stops are marked: an exception (or, for CancelledError,
its first argument) exposing ls_run_status of cancelled or
interrupted (e.g. a class attribute set by the library that raises it).
Anything else, including timeouts and unmarked CancelledError, returns
None and stays an error; no exception class is recognized by name.