Skip to main content

Module examples

Module examples 

Source
Available on crate feature guide only.
Expand description

Examples of using SNAFU

You are encouraged to view the Rust source for each error type by clicking the [src] link in the upper-right of each documentation page. This shows how you would accomplish the same task in your code.

The suggested order to browse them is:

  1. basic
  2. backtrace

You should also feel free to browse the acceptance tests and compatibility tests, which cover a broad range of functionality but with minimal descriptive prose.

Modules§

backtrace
Exposing complete backtraces to the location of the error.
basic
The most common usage of SNAFU — an enumeration of possible errors.