Function throw_exception

Synopsis

#include <include/internal/catch_enforce.h>

void throw_exception(std::exception const &e)

Description

No description yet.

Mentioned in

Source

Lines 15-20 in include/internal/catch_enforce.cpp. Line 25 in include/internal/catch_enforce.h.

[[noreturn]]
void throw_exception(std::exception const& e) {
    Catch::cerr() << "Catch will terminate because it needed to throw an exception.\n"
                  << "The message was: " << e.what() << '\n';
    std::terminate();
}





Add Discussion as Guest

Log in