pub fn python_exception_name(variant_name: &str, error_name: &str) -> StringExpand description
Return the Python exception name for a variant, avoiding shadowing of Python builtins.
- Appends
"Error"suffix if not already present (N818 compliance). - If the resulting name shadows a Python builtin, prefixes it with the error type’s base
name. E.g. for
CrawlError::Connection->ConnectionError(shadowed) ->CrawlConnectionError.