Expand description
Helpers for error handling.
Constants§
- DETAILS_
SEPARATOR - The separator used to split error messages into a summary and 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 details coming after
DETAILS_SEPARATOR. - split_
details - Split a message that may contain a
DETAILS_SEPARATORinto summary and optional details.