Celeritas
0.5.0-86+4a8eea4
|
Base class for writing arbitrary exception context to JSON. More...
#include <Assert.hh>
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. | |
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
.