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§
- A generic error, use instead of a Box
.
Traits§
- Allows converting a
Result
into aerror_backtrace::Result
explicitly.