MCPcopy Create free account
hub / github.com/bshoshany/thread-pool / test_exception

Class test_exception

tests/BS_thread_pool_test.cpp:2158–2161  ·  view source on GitHub ↗

* @brief An exception class to be thrown when testing exception handling. */

Source from the content-addressed store, hash-verified

2156 * @brief An exception class to be thrown when testing exception handling.
2157 */
2158struct test_exception : public std::runtime_error
2159{
2160 test_exception() : std::runtime_error("Exception thrown!") {};
2161};
2162
2163/**
2164 * @brief A function that throws a `test_exception`.

Callers 1

throwsFunction · 0.85

Calls

no outgoing calls

Tested by 1

throwsFunction · 0.68