An experimental new error-handling library. Guide-style introduction is available here.
The primary items exported by this library are:
Fail: a new trait for custom error types in Rust.
Error: a wrapper around
Failtypes to make it easy to coalesce them at higher levels.
As a general rule, library authors should create their own error types and
Fail for them, whereas application authors should primarily
deal with the
Error type. There are exceptions to this rule, though, in
both directions, and users should do whatever seems most appropriate to
Backtraces are disabled by default. To turn backtraces on, enable
backtrace Cargo feature and set the
variable to a non-zero value (this also enables backtraces for panics).
RUST_FAILURE_BACKTRACE variable to enable or disable backtraces
Errorif the condition is not satisfied.
Errorusing the standard string interpolation syntax.
Errortype, which can contain any failure.
stderrors to make them
Failtype from a string.