Function err
pub(crate) fn err<E: CoreError>(e: E) -> PyErrExpand description
Turns a core error into its Python exception, message forwarded.
A failure the core classifies as the caller’s input is Python’s
ValueError, whatever layer raised it: an unknown index or a backwards
contract is the same kind of mistake as an unknown currency code.