Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::RichContextException Class Referenceabstract

Base class for writing arbitrary exception context to JSON. More...

#include <Assert.hh>

Inheritance diagram for celeritas::RichContextException:
Inheritance graph
[legend]

Public Member Functions

virtual void output (JsonPimpl *) const =0
 Write output to the given JSON object.
 
virtual char const * type () const =0
 Provide the name for this exception class.
 

Detailed Description

Base class for writing arbitrary exception context to JSON.

This can be overridden in higher-level parts of the code for specific needs (e.g., writing thread, event, and track contexts in Celeritas solver kernels). Note that in order for derived classes to work with std::throw_with_nested, they MUST NOT be final.


The documentation for this class was generated from the following file: