macro_rules! to_py_err { ($error : ident -> $expr : expr) => { ... }; }
Macro to convert an error into a specific Python exception.