Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
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:188
Log an exception's context and optionally save to an output registry.
Definition LogContextException.hh:25

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