Expand description
Helpers for error handling.
Structs§
- Structured
Error - An error message split into a short summary and a list of details.
Functions§
- downcast_
source - Walk the source chain of
error(starting fromerroritself) and return the first source that can be downcast toT. - format
- Format an error, including its chain of sources.
- format_
ref - Format an error, including its chain of sources.
- format_
with_ details - Format an error with its details on trailing lines, one detail per line:
{summary}\n- {detail}\n- {detail}\n….