Celeritas 0.6.0-dev.115+3b60a5fd
|
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
.
Write output to the given JSON object.
Implemented in celeritas::IPAContextException, and celeritas::KernelContextException.
Provide the name for this exception class.
Implemented in celeritas::KernelContextException, and celeritas::IPAContextException.