Header Reference: <exception>
Header Reference: <exception>
Base exception facilities, exception transport helpers, and termination hooks provided by <exception>.
Header Reference: <exception>
Base exception facilities, exception transport helpers, and termination hooks provided by <exception>.
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.
<exception>std::exceptionstd::bad_exceptionstd::nested_exceptionstd::exception_ptrstd::current_exceptionstd::rethrow_exceptionstd::make_exception_ptrstd::terminate, std::set_terminate, std::get_terminatestd::uncaught_exceptionsUse <exception> for the base exception model, transporting exceptions across boundaries, and termination-related hooks.
const std::exception& at broad boundariesexception_ptruncaught_exceptions() in rollback or guard utilities#include <exception>
int main() {
// Start with the primary facility from <exception>.
// Then verify lifetime, invalidation, ordering, or error-handling rules.
return 0;
}