MCPcopy Create free account
hub / github.com/catchorg/Catch2 / throw_exception

Function throw_exception

extras/catch_amalgamated.cpp:4063–4068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4061namespace Catch {
4062#if defined(CATCH_CONFIG_DISABLE_EXCEPTIONS) && !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS_CUSTOM_HANDLER)
4063 [[noreturn]]
4064 void throw_exception(std::exception const& e) {
4065 Catch::cerr() << "Catch will terminate because it needed to throw an exception.\n"
4066 << "The message was: " << e.what() << '\n';
4067 std::terminate();
4068 }
4069#endif
4070
4071 [[noreturn]]

Callers 5

throw_logic_errorFunction · 0.70
throw_domain_errorFunction · 0.70
throw_runtime_errorFunction · 0.70

Calls 1

whatMethod · 0.45

Tested by

no test coverage detected