Module snafu::guide::examples

source ·
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.


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