rerun_bindings::catalog::errors

Function to_py_err

Source
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)?.