Skip to main content

Module error_display

Module error_display 

Source
Expand description

User-facing error message formatting.

Uses typed error matching (PolarsError variants, io::ErrorKind) rather than string parsing to produce actionable, implementation-agnostic messages.

Enums§

ErrorKindForPython
Classification for consumers (e.g. Python binding) that map to native exception types. Keeps error-handling logic in one place instead of duplicating in each binding.

Functions§

error_for_python
Classify a report and return a kind plus user-facing message. Used by the Python binding to raise FileNotFoundError, PermissionDenied, or RuntimeError without duplicating chain-walk logic.
user_message_from_io
Format an io::Error as a user-facing message by matching on ErrorKind.
user_message_from_polars
Format a PolarsError as a user-facing message by matching on its variant.
user_message_from_report
Format a color_eyre Report by downcasting to known error types. Walks the cause chain to find PolarsError or io::Error.