Expand description
Unified error causality chains across Rust and Python using PyErrChain.
Structs§
- Downcast
ToPy Err  - Try to map a 
std::error::Errorvia a specific error typeTto aPyErrby downcasting when used asMapErrorToPyErr; - Error
NoPy Err  - Never attempt to translate any 
std::error::ErrortoPyErrwhen used asAnyErrorToPyErr. - IoError
ToPy Err  - Translate 
std::io::ErrortoPyErrwhen used asAnyErrorToPyErr. - PyErr
Chain  PyErrChainwraps aPyErrtogether with its causality chain.
Traits§
- AnyError
ToPy Err  - Utility trait to try to translate from 
std::error::ErrortoPyErr. - MapError
ToPy Err  - Utility trait to try to translate via specific error types 
Eimplementingstd::error::Errorand wrapped errors such asMyError<E>toPyErrs. 
Functions§
- err_
with_ location  - Utility function to add a traceback with the error’s 
file,line, andcolumnlocation information to theerr.