aboutsummaryrefslogtreecommitdiff
path: root/src/lib/err/lib_err.md
blob: cb4eba2e0d829bf8e6fe2aa4a01044df65479dfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
@dir /lib/err
@brief lib/err: Lowest-level error handling code.

This module is responsible for generating stack traces, handling raw
assertion failures, and otherwise reporting problems that might not be
safe to report via the regular logging module.

There are three kinds of users for the functions in this module:
  * Code that needs a way to assert(), but which cannot use the regular
    `tor_assert()` macros in logging module.
  * Code that needs signal-safe error reporting.
  * Higher-level error handling code.