Re-exportsยง
use crate::conversion::IntoPyObject;๐use crate::ffi_ptr_ext::FfiPtrExt;๐use crate::inspect::PyStaticExpr;๐experimental-inspectuse crate::instance::Bound;๐use crate::intern;๐Py_3_11use crate::panic::PanicException;๐wip_feature_stduse crate::py_result_ext::PyResultExt;๐use crate::type_object::PyTypeInfo;๐use crate::types::PyString;๐Py_3_11use crate::types::any::PyAnyMethods;๐use crate::types::PyTraceback;๐use crate::types::PyType;๐use crate::types::string::PyStringMethods;๐use crate::types::traceback::PyTracebackMethods;๐use crate::types::typeobject::PyTypeMethods;๐use crate::BoundObject;๐use crate::Py;๐use crate::PyAny;๐use crate::Python;๐use crate::exceptions::PyBaseException;๐use crate::ffi;๐use core::convert::Infallible;๐use core::ffi::CStr;๐use err_state::PyErrState;๐use err_state::PyErrStateLazyFnOutput;๐use err_state::PyErrStateNormalized;๐pub use cast_error::CastError;pub use cast_error::CastIntoError;use crate::platform::prelude::*;๐
Modulesยง
- cast_
error ๐ - err_
state ๐ - impls ๐
Structsยง
- PyErr
- Represents a Python exception.
Traitsยง
- PyErr
Arguments - Helper conversion trait that allows to use custom arguments for lazy exception construction.
- ToPyErr
- Python exceptions that can be converted to
PyErr.
Functionsยง
- error_
on_ ๐negative - Returns Ok if the error code is non-negative.
- error_
on_ ๐negative_ with_ result - Returns Ok wrapping the result if the error code is non-negative.
- failed_
to_ ๐fetch - Called when
PyErr::fetchis called but no exception is set.
Type Aliasesยง
- PyResult
- Represents the result of a Python call.