Header Reference: <system_error>
Header Reference: <system_error>
Error codes, categories, conditions, and system_error exception support from <system_error>.
Header Reference: <system_error>
Error codes, categories, conditions, and system_error exception support from <system_error>.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
Header reference pages are meant to answer a practical question quickly: what this header provides, when to reach for it, and which usage rules are easiest to get wrong.
<system_error>std::error_codestd::error_conditionstd::error_categorystd::system_errorstd::errcstd::make_error_codestd::make_error_conditionUse <system_error> for non-throwing error reporting APIs and for exceptions that carry standardized error-code information.
std::error_code&error_code through category supportstd::system_error when an exception should preserve machine-readable failure information#include <system-error>
int main() {
// Start with the primary facility from <system-error>.
// Then verify lifetime, invalidation, ordering, or error-handling rules.
return 0;
}