Function pyo3::impl_::extract_argument::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