Icarus
Vehicle Simulation as a Transformable Computational Graph, built on Vulcan and Janus
Loading...
Searching...
No Matches
icarus::ErrorScope Class Reference

RAII wrapper for try/catch with automatic error reporting. More...

#include <ErrorHandler.hpp>

Public Member Functions

 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.

Detailed Description

RAII wrapper for try/catch with automatic error reporting.

Constructor & Destructor Documentation

◆ ErrorScope()

icarus::ErrorScope::ErrorScope ( ErrorHandler & handler,
double sim_time,
std::string component )
inline

◆ ~ErrorScope()

icarus::ErrorScope::~ErrorScope ( )
default

Member Function Documentation

◆ 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: