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§
- Error
Kind ForPython - 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.