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
async
tasks. - This is boxed inside an
Error
to make sure that all function signatures involving it aren’t inflated. SeeError
for 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 anErrorKind
and a location pushed onto its stacks (map_add_err
should have#[track_caller]
on it and push on theLocation::caller()
). You can also callmap_add_err
on plainError
s andimpl Into<ErrorKind>
s to get aResult<(), Error>
.