exceptions.h File
C++ header with declarations for the µTest++ exception-checking functions. More...
Included Headers
Namespaces Index
| namespace | micro_os_plus |
|
The primary namespace for the µOS++ framework. More... | |
| namespace | micro_test_plus |
|
Primary namespace for the µTest++ testing framework. More... | |
Functions Index
template <class Callable_T> | |
| constexpr auto | nothrow (const Callable_T &func) |
|
Check if a callable does not throw an exception. More... | |
template <class Callable_T> | |
| constexpr auto | throws (const Callable_T &func) |
|
Check if a callable throws an exception (any exception). More... | |
template <class Exception_T, class Callable_T> | |
| constexpr auto | throws (const Callable_T &func) |
|
Check if a callable throws a specific exception. More... | |
Description
C++ header with declarations for the µTest++ exception-checking functions.
This header provides the declarations for the exception-checking facilities of the µTest++ framework. It exposes three function templates — throws<Exception_T>(), throws(), and nothrow() — which allow test cases to verify that a callable throws a specific exception, throws any exception, or throws no exception, respectively.
All declarations are conditionally compiled under __cpp_exceptions and reside within the micro_os_plus::micro_test_plus namespace, ensuring clear separation from user code and minimising the risk of naming conflicts.
This header is located in the top-level include/micro-os-plus folder. Users should include <micro-os-plus/micro-test-plus.h> rather than this header directly.
File Listing
The file content with the documentation metadata removed is:
Generated via doxygen2docusaurus 2.2.0 by Doxygen 1.17.0.