pyo3::impl_::extract_argument

Function argument_extraction_error

Source
#[doc(hidden)] pub fn argument_extraction_error(
    py: Python<'_>,
    arg_name: &str,
    error: PyErr,
) -> PyErr
Expand description

Adds the argument name to the error message of an error which occurred during argument extraction.

Only modifies TypeError. (Cannot guarantee all exceptions have constructors from single string.)

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here