* @brief An exception class to be thrown when testing exception handling. */
| 2156 | * @brief An exception class to be thrown when testing exception handling. |
| 2157 | */ |
| 2158 | struct 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`. |