Skip to main content

failed_requirement Struct

The exception thrown to stop a test case after a failed require(). More...

Declaration​

struct micro_os_plus::micro_test_plus::detail::failed_requirement { ... }

Included Headers​

#include <detail.h>

Description​

The exception thrown to stop a test case after a failed require().

Thrown by the destructor of check_result, after the failure was reported and counted, when exceptions are enabled, and caught by test_case::run(), which ends the test case normally; the run continues with the next test case.

It is deliberately not derived from std::exception, so that a catch (const std::exception&) in the test case body does not stop it; a catch (...) does, and should rethrow it.

Definition at line 1321 of file detail.h.


Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.