Celeritas  0.5.0-86+4a8eea4
Classes | Functions
MultiExceptionHandler.hh File Reference
#include <exception>
#include <utility>
#include <vector>
#include "corecel/Config.hh"
#include "corecel/Macros.hh"
This graph shows which files directly or indirectly include this file:

Classes

class  celeritas::MultiExceptionHandler
 Temporarily store exception pointers. More...
 

Functions

void celeritas::detail::log_and_rethrow_impl (MultiExceptionHandler &&exceptions)
 Throw the first exception and log all the rest.
 
void celeritas::log_and_rethrow (MultiExceptionHandler &&exceptions)
 Throw the first exception and log all the rest. More...
 

Function Documentation

◆ log_and_rethrow()

void celeritas::log_and_rethrow ( MultiExceptionHandler &&  exceptions)
inline

Throw the first exception and log all the rest.

All logged exceptions will be thrown using CELER_LOG_LOCAL(critical) .