Crate pyo3_error
source ·Expand description
Unified error causality chains across Rust and Python using PyErrChain.
Structs§
- Try to map a
std::error::Errorvia a specific error typeTto aPyErrby downcasting when used asMapErrorToPyErr; PyErrChainwraps aPyErrtogether with its causality chain.
Traits§
- Utility trait to try to translate from
std::error::ErrortoPyErr. - Utility trait to try to translate via specific error types
Eimplementingstd::error::Errorand wrapped errors such asMyError<E>toPyErrs.
Functions§
- Utility function to add a traceback with the error’s
file,line, andcolumnlocation information to theerr.