rust_error_details
yosoi.errors.rust_error_details
def rust_error_details(error: BaseException) -> RustErrorDetails | None:
Read native Rust metadata, including through Pydantic validation errors.
Pydantic keeps its public ValidationError category and stores the
validator exception in each error context. This accessor follows those
contexts and Python’s explicit cause chain to find the original native
exception without replacing the raised exception.
Args: error: Exception whose native details or nested validation causes to inspect.
Returns: The first valid native metadata record found, with recursively frozen mappings and sequences, or None if no such record is reachable.