Celeritas  0.5.0-86+4a8eea4
Public Member Functions | Public Attributes | List of all members
celeritas::LogContextException Struct Reference

Log an exception's context and optionally save to an output registry. More...

#include <LogContextException.hh>

Public Member Functions

void operator() (std::exception_ptr p)
 

Public Attributes

OutputRegistryout {nullptr}
 

Detailed Description

Log an exception's context and optionally save to an output registry.

Example:

CELER_TRY_HANDLE(step(), LogContextException{this->output_reg().get()});
#define CELER_TRY_HANDLE(STATEMENT, HANDLE_EXCEPTION)
"Try" to execute the statement, and "handle" all thrown errors by calling the given function-like err...
Definition: Macros.hh:189

The documentation for this struct was generated from the following files: