Function pnl_err
pub(crate) fn pnl_err(e: PnlError) -> PyErrExpand description
A P&L failure: two markets of different shape, or differing by more than
an attribution can move, are the caller’s ValueError; a pricing, risk or curve failure inside the attribution keeps
its own class.