RAII wrapper for try/catch with automatic error reporting.
More...
#include <ErrorHandler.hpp>
|
| | ErrorScope (ErrorHandler &handler, double sim_time, std::string component) |
| | ~ErrorScope ()=default |
| template<typename F> |
| auto | Execute (F &&func) -> decltype(func()) |
| | Execute a callable, catching and reporting exceptions.
|
RAII wrapper for try/catch with automatic error reporting.
◆ ErrorScope()
| icarus::ErrorScope::ErrorScope |
( |
ErrorHandler & | handler, |
|
|
double | sim_time, |
|
|
std::string | component ) |
|
inline |
◆ ~ErrorScope()
| icarus::ErrorScope::~ErrorScope |
( |
| ) |
|
|
default |
◆ Execute()
template<typename F>
| auto icarus::ErrorScope::Execute |
( |
F && | func | ) |
->decltype(func()) |
|
inline |
Execute a callable, catching and reporting exceptions.
The documentation for this class was generated from the following file: