Crate error_backtrace

Source
Expand description

Attaches backtraces to errrors. *

  • Typical usage is automatic via ?:
struct Error;

fn maybe_error() -> Result<(), Error> {
   error_source()?;
   Ok(())
}

fn error_source() -> Result<(), Error> {
   Err(Error {}.into())
}

If you need to convert the error first, check out the IntoTraced trait.

Structs§

Traits§

Functions§

Type Aliases§