Crate stacked_errors
source ·Structs
- An experimental error struct that has an internal stack for different kinds of errors and a stack for locations. This is a replacement for the bad information you get from backtraces within
asynctasks. - This is boxed inside an
Errorto make sure that all function signatures involving it aren’t inflated. SeeErrorfor helper functions.
Enums
- In the future we plan on having almost every kind of error here under different feature gates. Please file an issue if you would like to include something.
Traits
- The intention of this trait is to convert
Option<T>s,Result<T, Error>s, andResult<T, impl Into<ErrorKind>>s intoResult<T, Error>s with the error having anErrorKindand a location pushed onto its stacks (map_add_errshould have#[track_caller]on it and push on theLocation::caller()). You can also callmap_add_erron plainErrors andimpl Into<ErrorKind>s to get aResult<(), Error>.