Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
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 consttype () 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.

Member Function Documentation

◆ output()

virtual void celeritas::RichContextException::output ( JsonPimpl ) const
pure virtual

Write output to the given JSON object.

Implemented in celeritas::IPAContextException, and celeritas::KernelContextException.

◆ type()

virtual char const * celeritas::RichContextException::type ( ) const
pure virtual

Provide the name for this exception class.

Implemented in celeritas::KernelContextException, and celeritas::IPAContextException.


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