Files
cppdraft_translate/cppdraft/diagnostics/general.md
2025-10-25 03:02:53 +03:00

35 lines
1.7 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[diagnostics.general]
# 19 Diagnostics library [[diagnostics]](./#diagnostics)
## 19.1 General [diagnostics.general]
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/diagnostics.tex#L6)
This Clause describes components that C++ programs may use to detect and
report error conditions[.](#1.sentence-1)
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/diagnostics.tex#L10)
The following subclauses describe components for
reporting several kinds of exceptional conditions,
documenting program assertions,
obtaining stacktraces, and
a global variable for error number codes,
as summarized in Table [49](#tab:diagnostics.summary "Table 49: Diagnostics library summary")[.](#2.sentence-1)
Table [49](#tab:diagnostics.summary) — Diagnostics library summary [[tab:diagnostics.summary]](./tab:diagnostics.summary)
| [🔗](#tab:diagnostics.summary-row-1) | **Subclause** | **Header** |
| --- | --- | --- |
| [🔗](#tab:diagnostics.summary-row-2)<br>[[std.exceptions]](std.exceptions "19.2Exception classes") | Exception classes | <stdexcept> |
| [🔗](#tab:diagnostics.summary-row-3)<br>[[assertions]](assertions "19.3Assertions") | Assertions | <cassert> |
| [🔗](#tab:diagnostics.summary-row-4)<br>[[errno]](errno "19.4Error numbers") | Error numbers | <cerrno> |
| [🔗](#tab:diagnostics.summary-row-5)<br>[[syserr]](syserr "19.5System error support") | System error support | <system_error> |
| [🔗](#tab:diagnostics.summary-row-6)<br>[[stacktrace]](stacktrace "19.6Stacktrace") | Stacktrace | <stacktrace> |
| [🔗](#tab:diagnostics.summary-row-7)<br>[[debugging]](debugging "19.7Debugging") | Debugging | <debugging> |