pub fn pyo3_error_has_methods(error: &ErrorDef) -> bool
Returns true when the error has whitelisted introspection methods that require extended constructor args (msg, status_code, is_transient, error_type).
true
(msg, status_code, is_transient, error_type)