arti/crates/tor-error
Nick Mathewson 53c599d50f Fix warn_report and error_report macros.
Originally they didn't check err.kind(), since err.kind() can never
increase their severity.  We lost that behavior with !1386, and we
became dependent on it with arti!1383.  Since they both merged at
the same time, CI broke.

This patch restores their original behavior.
2023-07-07 15:46:41 -04:00
..
src Fix warn_report and error_report macros. 2023-07-07 15:46:41 -04:00
Cargo.toml tor-error: tracing module: Use macro to generate macros 2023-07-07 18:38:24 +01:00
README.md tor-error: Add missing footnote 2023-03-31 18:45:40 +01:00

README.md

tor-error

Support for error handling in Tor and Arti

Primarily, this crate provides the [ErrorKind] enum, and associated [HasKind] trait.

There is also some other miscellany, supporting error handling in crates higher up the dependency stack.

Features

backtrace -- Enable backtraces in internal errors. (On by default.)

Experimental and unstable features

Note that the APIs enabled by these features are NOT covered by semantic versioning1 guarantees: we might break them or remove them between patch versions.

  • experimental-api: Add additional non-stable APIs to our public interfaces.

License: MIT OR Apache-2.0


  1. Remember, semantic versioning is what makes various cargo features work reliably. To be explicit: if you want cargo update to only make safe changes, then you cannot enable these features. ↩︎