The function std::terminate ([except.terminate])
is used by the exception
handling mechanism for coping with errors related to the exception handling
mechanism itself.
The function
std::current_exception() ([propagation]) and the class
std::nested_exception ([except.nested]) can be used by a program to
capture the currently handled exception.