Skip to main content

Module err

Module err 

Source

Re-exportsยง

use crate::conversion::IntoPyObject; ๐Ÿ”’
use crate::ffi_ptr_ext::FfiPtrExt; ๐Ÿ”’
use crate::inspect::PyStaticExpr; ๐Ÿ”’ experimental-inspect
use crate::instance::Bound; ๐Ÿ”’
use crate::intern; ๐Ÿ”’ Py_3_11
use crate::panic::PanicException; ๐Ÿ”’ wip_feature_std
use crate::py_result_ext::PyResultExt; ๐Ÿ”’
use crate::type_object::PyTypeInfo; ๐Ÿ”’
use crate::types::PyString; ๐Ÿ”’ Py_3_11
use 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ยง

PyErrArguments
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::fetch is called but no exception is set.

Type Aliasesยง

PyResult
Represents the result of a Python call.
โš ๏ธ Internal Docs โš ๏ธ Not Public API ๐Ÿ‘‰ Official Docs Here