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. See Error 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, and Result<T, impl Into<ErrorKind>>s into Result<T, Error>s with the error having an ErrorKind and a location pushed onto its stacks (map_add_err should have #[track_caller] on it and push on the Location::caller()). You can also call map_add_err on plain Errors and impl Into<ErrorKind>s to get a Result<(), Error>.

Type Definitions