|
Celeritas 0.7.0-dev.170+develop.df22d2a88
|
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::KernelContextException.
Provide the name for this exception class.
Implemented in celeritas::KernelContextException.