pub fn to_py_err(err: impl Into<ExternalError>) -> PyErr
Expand description
Global mapping of all our internal error to user-facing Python errors.
Use as .map_err(to_py_err)?
.
pub fn to_py_err(err: impl Into<ExternalError>) -> PyErr
Global mapping of all our internal error to user-facing Python errors.
Use as .map_err(to_py_err)?
.